Skip to content
Snippets Groups Projects
Commit 0a980eea authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Is this the correct bahavior for step_req.cpu_count?

parent f6a8e5b7
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,10 @@ int slaunch(int argc, char **argv) ...@@ -169,7 +169,10 @@ int slaunch(int argc, char **argv)
step_req.user_id = getuid(); step_req.user_id = getuid();
step_req.node_count = opt.num_nodes; step_req.node_count = opt.num_nodes;
step_req.num_tasks = opt.num_tasks; step_req.num_tasks = opt.num_tasks;
step_req.cpu_count = opt.num_tasks * opt.cpus_per_task; if (opt.overcommit)
step_req.cpu_count = 0;
else
step_req.cpu_count = opt.num_tasks * opt.cpus_per_task;
step_req.relative = opt.relative; step_req.relative = opt.relative;
step_req.task_dist = opt.distribution; step_req.task_dist = opt.distribution;
step_req.overcommit = opt.overcommit ? 1 : 0; step_req.overcommit = opt.overcommit ? 1 : 0;
......
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