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

In select/cons_res, fix for function argument type mis-match in getting

    CPU count for a job.
parent 0041ce6b
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ documents those changes that are of interest to users and admins. ...@@ -8,6 +8,8 @@ documents those changes that are of interest to users and admins.
-- srun --get-user-env now sends su's stderr to /dev/null -- srun --get-user-env now sends su's stderr to /dev/null
-- Fix in node_scheduling logic with multiple node_sets, from -- Fix in node_scheduling logic with multiple node_sets, from
Ernest Artiaga, BSC. Ernest Artiaga, BSC.
-- In select/cons_res, fix for function argument type mis-match in getting
CPU count for a job.
* Changes in SLURM 1.2.1 * Changes in SLURM 1.2.1
======================== ========================
......
...@@ -1386,7 +1386,7 @@ extern void build_node_details(struct job_record *job_ptr) ...@@ -1386,7 +1386,7 @@ extern void build_node_details(struct job_record *job_ptr)
xfree(job_ptr->alloc_lps); xfree(job_ptr->alloc_lps);
if (job_ptr->cr_enabled) { if (job_ptr->cr_enabled) {
cr_enabled = job_ptr->cr_enabled; cr_enabled = job_ptr->cr_enabled;
job_ptr->alloc_lps = xmalloc(job_ptr->node_cnt * sizeof(int)); job_ptr->alloc_lps = xmalloc(job_ptr->node_cnt * sizeof(uint32_t));
job_ptr->alloc_lps_cnt = job_ptr->node_cnt; job_ptr->alloc_lps_cnt = job_ptr->node_cnt;
} }
...@@ -1394,7 +1394,7 @@ extern void build_node_details(struct job_record *job_ptr) ...@@ -1394,7 +1394,7 @@ extern void build_node_details(struct job_record *job_ptr)
node_ptr = find_node_record(this_node_name); node_ptr = find_node_record(this_node_name);
if (node_ptr) { if (node_ptr) {
int usable_lps = 0; uint16_t usable_lps = 0;
#ifdef HAVE_BG #ifdef HAVE_BG
if(job_ptr->node_cnt == 1) { if(job_ptr->node_cnt == 1) {
memcpy(&job_ptr->node_addr[node_inx++], memcpy(&job_ptr->node_addr[node_inx++],
...@@ -1419,7 +1419,6 @@ extern void build_node_details(struct job_record *job_ptr) ...@@ -1419,7 +1419,6 @@ extern void build_node_details(struct job_record *job_ptr)
} else { } else {
if (cr_enabled) { if (cr_enabled) {
xfree(job_ptr->alloc_lps); xfree(job_ptr->alloc_lps);
job_ptr->alloc_lps = NULL;
job_ptr->alloc_lps_cnt = 0; job_ptr->alloc_lps_cnt = 0;
} }
error("Unable to get extra jobinfo " error("Unable to get extra jobinfo "
......
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