Skip to content
Snippets Groups Projects
Commit 050654c0 authored by Morris Jette's avatar Morris Jette
Browse files

Don't allocate step mem if no mem allocation to job

If the select plugin does not allocate memory to a job, then do not
try to alloocate memory to the job step, without this the step allocation
will always fail
parent f3268f18
No related branches found
No related tags found
No related merge requests found
...@@ -801,7 +801,7 @@ _pick_step_nodes (struct job_record *job_ptr, ...@@ -801,7 +801,7 @@ _pick_step_nodes (struct job_record *job_ptr,
avail_tasks = step_spec->num_tasks; avail_tasks = step_spec->num_tasks;
total_tasks = step_spec->num_tasks; total_tasks = step_spec->num_tasks;
} }
if (step_spec->mem_per_cpu) { if (step_spec->mem_per_cpu && _is_mem_resv()) {
avail_mem = job_resrcs_ptr-> avail_mem = job_resrcs_ptr->
memory_allocated[node_inx] - memory_allocated[node_inx] -
job_resrcs_ptr->memory_used[node_inx]; job_resrcs_ptr->memory_used[node_inx];
......
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