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

Merge branch 'slurm-2.5' into slurm-2.6

parents aa7aade6 e180d341
No related branches found
No related tags found
No related merge requests found
...@@ -136,8 +136,9 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr) ...@@ -136,8 +136,9 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr)
job_resources_t *job_res = job_ptr->job_resrcs; job_resources_t *job_res = job_ptr->job_resrcs;
bool log_over_subscribe = true; bool log_over_subscribe = true;
if (!job_res || !job_res->cpus) { if (!job_res || !job_res->cpus || !job_res->nhosts) {
error("cons_res: _compute_c_b_task_dist given NULL job_ptr"); error("cons_res: _compute_c_b_task_dist invalid allocation "
"for job %u", job_ptr->job_id);
return SLURM_ERROR; return SLURM_ERROR;
} }
...@@ -210,8 +211,9 @@ static int _compute_plane_dist(struct job_record *job_ptr) ...@@ -210,8 +211,9 @@ static int _compute_plane_dist(struct job_record *job_ptr)
job_resources_t *job_res = job_ptr->job_resrcs; job_resources_t *job_res = job_ptr->job_resrcs;
bool log_over_subscribe = true; bool log_over_subscribe = true;
if (!job_res || !job_res->cpus) { if (!job_res || !job_res->cpus || !job_res->nhosts) {
error("cons_res: _compute_plane_dist given NULL job_res"); error("cons_res: _compute_c_b_task_dist invalid allocation "
"for job %u", job_ptr->job_id);
return SLURM_ERROR; return SLURM_ERROR;
} }
......
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