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

Merge branch 'slurm-2.6'

parents cee7c4f9 2dfa3ff6
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,8 @@ documents those changes that are of interest to users and admins. ...@@ -159,6 +159,8 @@ documents those changes that are of interest to users and admins.
-- Improve setting of job wait "Reason" field. -- Improve setting of job wait "Reason" field.
-- Correct sbatch documentation and job_submit/pbs plugin "%j" is job ID, -- Correct sbatch documentation and job_submit/pbs plugin "%j" is job ID,
not "%J" (which is job_id.step_id). not "%J" (which is job_id.step_id).
-- Improvements to sinfo performance, especially for large numbers of
partitions.
* Changes in Slurm 2.6.3 * Changes in Slurm 2.6.3
======================== ========================
......
...@@ -1090,8 +1090,8 @@ static hostrange_t hostrange_intersect(hostrange_t h1, hostrange_t h2) ...@@ -1090,8 +1090,8 @@ static hostrange_t hostrange_intersect(hostrange_t h1, hostrange_t h2)
assert(hostrange_cmp(h1, h2) <= 0); assert(hostrange_cmp(h1, h2) <= 0);
if ((hostrange_prefix_cmp(h1, h2) == 0) if ((h1->hi > h2->lo)
&& (h1->hi > h2->lo) && (hostrange_prefix_cmp(h1, h2) == 0)
&& (hostrange_width_combine(h1, h2))) { && (hostrange_width_combine(h1, h2))) {
if (!(new = hostrange_copy(h1))) if (!(new = hostrange_copy(h1)))
...@@ -1408,8 +1408,8 @@ static int hostlist_push_range(hostlist_t hl, hostrange_t hr) ...@@ -1408,8 +1408,8 @@ static int hostlist_push_range(hostlist_t hl, hostrange_t hr)
goto error; goto error;
if (hl->nranges > 0 if (hl->nranges > 0
&& hostrange_prefix_cmp(tail, hr) == 0
&& tail->hi == hr->lo - 1 && tail->hi == hr->lo - 1
&& hostrange_prefix_cmp(tail, hr) == 0
&& hostrange_width_combine(tail, hr)) { && hostrange_width_combine(tail, hr)) {
tail->hi = hr->hi; tail->hi = hr->hi;
} else { } else {
...@@ -2448,8 +2448,8 @@ static void hostlist_collapse(hostlist_t hl) ...@@ -2448,8 +2448,8 @@ static void hostlist_collapse(hostlist_t hl)
hostrange_t hprev = hl->hr[i - 1]; hostrange_t hprev = hl->hr[i - 1];
hostrange_t hnext = hl->hr[i]; hostrange_t hnext = hl->hr[i];
if (hostrange_prefix_cmp(hprev, hnext) == 0 && if (hprev->hi == hnext->lo - 1 &&
hprev->hi == hnext->lo - 1 && hostrange_prefix_cmp(hprev, hnext) == 0 &&
hostrange_width_combine(hprev, hnext)) { hostrange_width_combine(hprev, hnext)) {
hprev->hi = hnext->hi; hprev->hi = hnext->hi;
hostlist_delete_range(hl, i); hostlist_delete_range(hl, i);
......
...@@ -438,7 +438,7 @@ static int _build_sinfo_data(List sinfo_list, ...@@ -438,7 +438,7 @@ static int _build_sinfo_data(List sinfo_list,
} }
continue; continue;
} }
j2 = 0; j2 = 0;
while (part_ptr->node_inx[j2] >= 0) { while (part_ptr->node_inx[j2] >= 0) {
int i2 = 0; int i2 = 0;
...@@ -826,9 +826,11 @@ static void _update_sinfo(sinfo_data_t *sinfo_ptr, node_info_t *node_ptr, ...@@ -826,9 +826,11 @@ static void _update_sinfo(sinfo_data_t *sinfo_ptr, node_info_t *node_ptr,
sinfo_ptr->max_cpu_load = node_ptr->cpu_load; sinfo_ptr->max_cpu_load = node_ptr->cpu_load;
} }
hostlist_push(sinfo_ptr->nodes, node_ptr->name); hostlist_push(sinfo_ptr->nodes, node_ptr->name);
hostlist_push(sinfo_ptr->node_addr, node_ptr->node_addr); if (params.match_flags.node_addr_flag)
hostlist_push(sinfo_ptr->hostnames, node_ptr->node_hostname); hostlist_push(sinfo_ptr->node_addr, node_ptr->node_addr);
if (params.match_flags.hostnames_flag)
hostlist_push(sinfo_ptr->hostnames, node_ptr->node_hostname);
total_cpus = node_ptr->cpus; total_cpus = node_ptr->cpus;
total_nodes = node_scaling; total_nodes = node_scaling;
......
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