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
904dc4cf
Commit
904dc4cf
authored
8 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Minor improvements in hwloc info logging
parent
aa58045e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmd/common/xcpuinfo.c
+15
-9
15 additions, 9 deletions
src/slurmd/common/xcpuinfo.c
with
15 additions
and
9 deletions
src/slurmd/common/xcpuinfo.c
+
15
−
9
View file @
904dc4cf
...
...
@@ -73,6 +73,8 @@
#include
"xcpuinfo.h"
#define _DEBUG 0
#if !defined(HAVE_HWLOC)
static
char
*
_cpuinfo_path
=
"/proc/cpuinfo"
;
...
...
@@ -159,17 +161,19 @@ get_procs(uint16_t *procs)
* NOTE: User must xfree block_map and block_map_inv
*/
#ifdef HAVE_HWLOC
#if DEBUG
_DETAIL
static
void
hwloc_children
(
hwloc_topology_t
topology
,
hwloc_obj_t
obj
,
int
depth
)
#if
_
DEBUG
static
void
_
hwloc_children
(
hwloc_topology_t
topology
,
hwloc_obj_t
obj
,
int
depth
)
{
char
string
[
128
];
unsigned
i
;
if
(
!
obj
)
return
;
hwloc_obj_snprintf
(
string
,
sizeof
(
string
),
topology
,
obj
,
"#"
,
0
);
debug
3
(
"%*s%s"
,
2
*
depth
,
""
,
string
);
debug
(
"%*s%s"
,
2
*
depth
,
""
,
string
);
for
(
i
=
0
;
i
<
obj
->
arity
;
i
++
)
{
hwloc_children
(
topology
,
obj
->
children
[
i
],
depth
+
1
);
_
hwloc_children
(
topology
,
obj
->
children
[
i
],
depth
+
1
);
}
}
#endif
...
...
@@ -228,7 +232,9 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
hwloc_topology_destroy
(
topology
);
return
2
;
}
#if _DEBUG
_hwloc_children
(
topology
,
hwloc_get_root_obj
(
topology
),
0
);
#endif
/* Some processors (e.g. AMD Opteron 6000 series) contain multiple
* NUMA nodes per socket. This is a configuration which does not map
* into the hardware entities that Slurm optimizes resource allocation
...
...
@@ -369,7 +375,7 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
*
p_cores
=
nobj
[
CORE
];
*
p_threads
=
nobj
[
PU
];
#if DEBUG
_DETAIL
#if
_
DEBUG
/*** Display raw data ***/
debug
(
"CPUs:%u Boards:%u Sockets:%u CoresPerSocket:%u ThreadsPerCore:%u"
,
*
p_cpus
,
*
p_boards
,
*
p_sockets
,
*
p_cores
,
*
p_threads
);
...
...
@@ -672,7 +678,7 @@ get_cpuinfo(uint16_t *p_cpus, uint16_t *p_boards,
*
p_cores
=
cores
;
*
p_threads
=
threads
;
#if DEBUG
_DETAIL
#if
_
DEBUG
/*** Display raw data ***/
debug3
(
"numcpu: %u"
,
numcpu
);
debug3
(
"numphys: %u"
,
numphys
);
...
...
@@ -853,7 +859,7 @@ static int _compute_block_map(uint16_t numproc,
(
*
block_map_inv
)[
idx
]
=
i
;
}
}
#if DEBUG
_DETAIL
#if
_
DEBUG
/* Display the mapping tables */
debug3
(
"
\n
Machine logical CPU ID assignment:"
);
...
...
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