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

Replace a couple of abort() calls with reasonable non-fatal error

parent e4e7170c
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,10 @@ static int _find_offset(struct select_cr_job *job, const int job_index, ...@@ -156,8 +156,10 @@ static int _find_offset(struct select_cr_job *job, const int job_index,
} }
} }
if (index < 0) { if (index < 0) {
/* This may happen if a node has fewer nodes than
* configured and FastSchedule=2 */
error("job_assign_task: failure in computing offset"); error("job_assign_task: failure in computing offset");
abort(); index = 0;
} }
return index * this_cr_node->num_sockets; return index * this_cr_node->num_sockets;
...@@ -511,7 +513,7 @@ extern int cr_plane_dist(struct select_cr_job *job, ...@@ -511,7 +513,7 @@ extern int cr_plane_dist(struct select_cr_job *job,
if (last_taskcount == taskcount) { if (last_taskcount == taskcount) {
/* avoid possible infinite loop on error */ /* avoid possible infinite loop on error */
error("cr_plane_dist failure"); error("cr_plane_dist failure");
abort(); 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