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

Fix for use of --overcomment with --tasks-per-node

parent f3f5a12a
No related branches found
No related tags found
No related merge requests found
...@@ -1713,7 +1713,7 @@ alloc_job: ...@@ -1713,7 +1713,7 @@ alloc_job:
* For cons_res, all available logical processors will be allocated on * For cons_res, all available logical processors will be allocated on
* each allocated node in order to accommodate the overcommit request. * each allocated node in order to accommodate the overcommit request.
*/ */
if (job_ptr->details->overcommit) if (job_ptr->details->overcommit && job_ptr->details->num_tasks)
job_res->nprocs = MIN(total_cpus, job_ptr->details->num_tasks); job_res->nprocs = MIN(total_cpus, job_ptr->details->num_tasks);
debug3("cons_res: cr_job_test: job %u nprocs %u cbits %u/%u nbits %u", debug3("cons_res: cr_job_test: job %u nprocs %u cbits %u/%u nbits %u",
......
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