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
7e7814c0
Commit
7e7814c0
authored
10 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.6' into slurm-14.03
parents
e88b9899
ebaa4366
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/common/xcpuinfo.c
+9
-11
9 additions, 11 deletions
src/common/xcpuinfo.c
with
11 additions
and
11 deletions
NEWS
+
2
−
0
View file @
7e7814c0
...
...
@@ -562,6 +562,8 @@ documents those changes that are of interest to users and admins.
-- Properly enforce job --requeue and --norequeue options.
-- If a job --mem-per-cpu limit exceeds the partition or system limit, then
scale the job's memory limit and CPUs per task to satisfy the limit.
-- Correct logic to support Power7 processor with 1 or 2 threads per core
(CPU IDs are not consecutive).
* Changes in Slurm 2.6.9
========================
...
...
This diff is collapsed.
Click to expand it.
src/common/xcpuinfo.c
+
9
−
11
View file @
7e7814c0
...
...
@@ -499,15 +499,15 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
cpu_info_file
)
!=
NULL
)
{
uint32_t
val
;
if
(
_chk_cpuinfo_uint32
(
buffer
,
"processor"
,
&
val
))
{
curcpu
=
numcpu
;
numcpu
++
;
curcpu
=
val
;
if
(
val
>=
numproc
)
{
/* out of bounds, ignore */
debug
(
"cpuid is %u (> %d), ignored"
,
val
,
numproc
);
if
(
curcpu
>=
numproc
)
{
info
(
"processor limit reached (%u >= %d)"
,
curcpu
,
numproc
);
continue
;
}
cpuinfo
[
val
].
seen
=
1
;
cpuinfo
[
val
].
cpuid
=
val
;
cpuinfo
[
curcpu
].
seen
=
1
;
cpuinfo
[
curcpu
].
cpuid
=
val
;
maxcpuid
=
MAX
(
maxcpuid
,
val
);
mincpuid
=
MIN
(
mincpuid
,
val
);
}
else
if
(
_chk_cpuinfo_uint32
(
buffer
,
"physical id"
,
&
val
))
{
...
...
@@ -629,7 +629,6 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
#if DEBUG_DETAIL
/*** Display raw data ***/
debug3
(
""
);
debug3
(
"numcpu: %u"
,
numcpu
);
debug3
(
"numphys: %u"
,
numphys
);
debug3
(
"numcores: %u"
,
numcores
);
...
...
@@ -641,19 +640,18 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
debug3
(
"physid: %u->%u"
,
minphysid
,
maxphysid
);
debug3
(
"coreid: %u->%u"
,
mincoreid
,
maxcoreid
);
for
(
i
=
0
;
i
<
=
maxcpuid
;
i
++
)
{
for
(
i
=
0
;
i
<
numproc
;
i
++
)
{
debug3
(
"CPU %d:"
,
i
);
debug3
(
" cpuid: %u"
,
cpuinfo
[
i
].
cpuid
);
debug3
(
" seen: %u"
,
cpuinfo
[
i
].
seen
);
debug3
(
" physid: %u"
,
cpuinfo
[
i
].
physid
);
debug3
(
" physcnt: %u"
,
cpuinfo
[
i
].
physcnt
);
debug3
(
" siblings: %u"
,
cpuinfo
[
i
].
siblings
);
debug3
(
" cores: %u"
,
cpuinfo
[
i
].
cores
);
debug3
(
" coreid: %u"
,
cpuinfo
[
i
].
coreid
);
debug3
(
" corecnt: %u"
,
cpuinfo
[
i
].
corecnt
);
debug3
(
""
);
debug3
(
" corecnt: %u
\n
"
,
cpuinfo
[
i
].
corecnt
);
}
debug3
(
""
);
debug3
(
"Sockets: %u"
,
sockets
);
debug3
(
"Cores per socket: %u"
,
cores
);
debug3
(
"Threads per core: %u"
,
threads
);
...
...
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