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

Fix for fatal error managing GRES. Patch by Carles Fenoy, BSC.

parent 85a5a8d0
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ documents those changes that are of interest to users and admins. ...@@ -21,6 +21,7 @@ documents those changes that are of interest to users and admins.
-- Avoid orphan job step if slurmctld is down when a job step completes. -- Avoid orphan job step if slurmctld is down when a job step completes.
-- Fix Lua link order, patch from Pär Andersson, NSC. -- Fix Lua link order, patch from Pär Andersson, NSC.
-- Set SLURM_CPUS_PER_TASK=1 when user specifies --cpus-per-task=1. -- Set SLURM_CPUS_PER_TASK=1 when user specifies --cpus-per-task=1.
-- Fix for fatal error managing GRES. Patch by Carles Fenoy, BSC.
* Changes in SLURM 2.3.1 * Changes in SLURM 2.3.1
======================== ========================
......
...@@ -27,6 +27,7 @@ organizations. The current SLURM development staff includes: </p> ...@@ -27,6 +27,7 @@ organizations. The current SLURM development staff includes: </p>
<li>Gilles Civario (Bull)</li> <li>Gilles Civario (Bull)</li>
<li>Chuck Clouston (Bull)</li> <li>Chuck Clouston (Bull)</li>
<li>Yuri D'Elia (Center for Biomedicine, EURAC Research, Italy)</li> <li>Yuri D'Elia (Center for Biomedicine, EURAC Research, Italy)</li>
<li>Carles Fenoy (Barcelona Supercomputer Center, Spain)</li>
<li>Joseph Donaghy (LLNL)</li> <li>Joseph Donaghy (LLNL)</li>
<li>Chris Dunlap (LLNL)</li> <li>Chris Dunlap (LLNL)</li>
<li>Joey Ekstrom (LLNL/Bringham Young University)</li> <li>Joey Ekstrom (LLNL/Bringham Young University)</li>
......
...@@ -2509,6 +2509,12 @@ extern uint32_t _job_test(void *job_gres_data, void *node_gres_data, ...@@ -2509,6 +2509,12 @@ extern uint32_t _job_test(void *job_gres_data, void *node_gres_data,
return NO_VAL; return NO_VAL;
} else if (job_gres_ptr->gres_cnt_alloc && node_gres_ptr->topo_cnt) { } else if (job_gres_ptr->gres_cnt_alloc && node_gres_ptr->topo_cnt) {
/* Need to determine which specific CPUs can be used */ /* Need to determine which specific CPUs can be used */
gres_avail = node_gres_ptr->gres_cnt_avail;
if (!use_total_gres)
gres_avail -= node_gres_ptr->gres_cnt_alloc;
if (job_gres_ptr->gres_cnt_alloc > gres_avail)
return (uint32_t) 0; /* insufficient, gres to use */
if (cpu_bitmap) { if (cpu_bitmap) {
cpus_ctld = cpu_end_bit - cpu_start_bit + 1; cpus_ctld = cpu_end_bit - cpu_start_bit + 1;
if (cpus_ctld < 1) { if (cpus_ctld < 1) {
......
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