Skip to content
Snippets Groups Projects
Commit c1462e89 authored by Carles Fenoy's avatar Carles Fenoy
Browse files

Solved bug in select/cons_res plugin which makes jobs requesting

tasks_per_node and cpus_per_task not getting proper allocation and
failing in srun with "Requested node configuration is not	available"
parent 3d8ef636
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr) ...@@ -85,7 +85,7 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr)
if (job_ptr->details->ntasks_per_node == 0) if (job_ptr->details->ntasks_per_node == 0)
maxtasks = maxtasks / job_ptr->details->cpus_per_task; maxtasks = maxtasks / job_ptr->details->cpus_per_task;
else else
maxtasks = job_ptr->details->ntasks_per_node; maxtasks = job_ptr->details->ntasks_per_node * job_res->nhosts;
} }
/* Safe guard if the user didn't specified a lower number of /* Safe guard if the user didn't specified a lower number of
......
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