Skip to content
Snippets Groups Projects
Commit 77dae77a authored by Don Lipari's avatar Don Lipari
Browse files

Changed display of CPUs in scontrol show job from CPUs= to CPU_IDs= to convey

that CPU IDs are displayed and not a CPU count.
parent 18705957
No related branches found
No related tags found
No related merge requests found
...@@ -352,7 +352,7 @@ slurm_sprint_job_info ( job_info_t * job_ptr, int one_liner ) ...@@ -352,7 +352,7 @@ slurm_sprint_job_info ( job_info_t * job_ptr, int one_liner )
hostlist_ranged_string(hl_last, hostlist_ranged_string(hl_last,
sizeof(last_hosts), last_hosts); sizeof(last_hosts), last_hosts);
snprintf(tmp_line, sizeof(tmp_line), snprintf(tmp_line, sizeof(tmp_line),
" Nodes=%s CPUs=%s Mem=%u", " Nodes=%s CPU_IDs=%s Mem=%u",
last_hosts, tmp2, last_mem_alloc_ptr ? last_hosts, tmp2, last_mem_alloc_ptr ?
last_mem_alloc : 0); last_mem_alloc : 0);
xstrcat(out, tmp_line); xstrcat(out, tmp_line);
...@@ -389,7 +389,7 @@ slurm_sprint_job_info ( job_info_t * job_ptr, int one_liner ) ...@@ -389,7 +389,7 @@ slurm_sprint_job_info ( job_info_t * job_ptr, int one_liner )
if (hostlist_count(hl_last)) { if (hostlist_count(hl_last)) {
hostlist_ranged_string(hl_last, sizeof(last_hosts), last_hosts); hostlist_ranged_string(hl_last, sizeof(last_hosts), last_hosts);
snprintf(tmp_line, sizeof(tmp_line), snprintf(tmp_line, sizeof(tmp_line),
" Nodes=%s CPUs=%s Mem=%u", last_hosts, tmp2, " Nodes=%s CPU_IDs=%s Mem=%u", last_hosts, tmp2,
last_mem_alloc_ptr ? last_mem_alloc : 0); last_mem_alloc_ptr ? last_mem_alloc : 0);
xstrcat(out, tmp_line); xstrcat(out, tmp_line);
if (one_liner) if (one_liner)
......
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