Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
f56b1db5
Commit
f56b1db5
authored
11 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.6'
parents
cee7c4f9
2dfa3ff6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/common/hostlist.c
+5
-5
5 additions, 5 deletions
src/common/hostlist.c
src/sinfo/sinfo.c
+6
-4
6 additions, 4 deletions
src/sinfo/sinfo.c
with
13 additions
and
9 deletions
NEWS
+
2
−
0
View file @
f56b1db5
...
@@ -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
========================
========================
...
...
This diff is collapsed.
Click to expand it.
src/common/hostlist.c
+
5
−
5
View file @
f56b1db5
...
@@ -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
((
h
ostrange_prefix_cmp
(
h1
,
h2
)
==
0
)
if
((
h
1
->
hi
>
h2
->
lo
)
&&
(
h
1
->
hi
>
h2
->
lo
)
&&
(
h
ostrange_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
(
h
ostrange_prefix_cmp
(
hprev
,
hnext
)
==
0
&&
if
(
h
prev
->
hi
==
hnext
->
lo
-
1
&&
h
prev
->
hi
==
hnext
->
lo
-
1
&&
h
ostrange_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
);
...
...
This diff is collapsed.
Click to expand it.
src/sinfo/sinfo.c
+
6
−
4
View file @
f56b1db5
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment