Skip to content
Snippets Groups Projects
Commit 2db2f0dc authored by Moe Jette's avatar Moe Jette
Browse files

Add support for specification of task distribution being sent to slurmctld

(block or cyclic).
parent 2fd265e0
No related branches found
No related tags found
No related merge requests found
...@@ -345,7 +345,10 @@ create_job_step(job_t *job) ...@@ -345,7 +345,10 @@ create_job_step(job_t *job)
req.cpu_count = opt.nprocs; req.cpu_count = opt.nprocs;
req.node_list = job->nodelist; req.node_list = job->nodelist;
req.relative = false; req.relative = false;
req.task_dist = SLURM_DIST_CYCLIC; if (opt.distribution == SRUN_DIST_BLOCK)
req.task_dist = SLURM_DIST_BLOCK;
else if (opt.distribution == SRUN_DIST_CYCLIC)
req.task_dist = SLURM_DIST_CYCLIC;
req_msg.msg_type = REQUEST_JOB_STEP_CREATE; req_msg.msg_type = REQUEST_JOB_STEP_CREATE;
req_msg.data = &req; req_msg.data = &req;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment