Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWP-CM22-Planbased OMPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
SWP-CM22-Planbased OMPI
Commits
5a2c9ed0
Unverified
Commit
5a2c9ed0
authored
4 years ago
by
Ralph Castain
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8880 from rhc54/topic/hwl
Be more robust in getting hwloc topology
parents
976aef1a
d62f37a0
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
opal/mca/hwloc/base/hwloc_base_util.c
+8
-3
8 additions, 3 deletions
opal/mca/hwloc/base/hwloc_base_util.c
with
8 additions
and
3 deletions
opal/mca/hwloc/base/hwloc_base_util.c
+
8
−
3
View file @
5a2c9ed0
...
...
@@ -21,6 +21,7 @@
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
* Copyright (c) 2019-2021 IBM Corporation. All rights reserved.
* Copyright (c) 2019-2020 Inria. All rights reserved.
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
...
...
@@ -369,9 +370,10 @@ int opal_hwloc_base_get_topology(void)
return
OPAL_ERROR
;
}
if
(
0
!=
hwloc_topology_set_xmlbuffer
(
opal_hwloc_topology
,
val
,
strlen
(
val
)
+
1
))
{
/* default to discovery */
free
(
val
);
hwloc_topology_destroy
(
opal_hwloc_topology
);
return
OPAL_ERROR
;
goto
discover
;
}
/* since we are loading this from an external source, we have to
* explicitly set a flag so hwloc sets things up correctly
...
...
@@ -379,15 +381,17 @@ int opal_hwloc_base_get_topology(void)
if
(
0
!=
opal_hwloc_base_topology_set_flags
(
opal_hwloc_topology
,
HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM
,
true
))
{
/* default to discovery */
hwloc_topology_destroy
(
opal_hwloc_topology
);
free
(
val
);
return
OPAL_ERROR
;
goto
discover
;
}
/* now load the topology */
if
(
0
!=
hwloc_topology_load
(
opal_hwloc_topology
))
{
/* default to discovery */
hwloc_topology_destroy
(
opal_hwloc_topology
);
free
(
val
);
return
OPAL_ERROR
;
goto
discover
;
}
free
(
val
);
/* filter the cpus thru any default cpu set */
...
...
@@ -396,6 +400,7 @@ int opal_hwloc_base_get_topology(void)
return
rc
;
}
}
else
{
discover:
opal_output_verbose
(
1
,
opal_hwloc_base_framework
.
framework_output
,
"hwloc:base discovering topology"
);
if
(
0
!=
hwloc_topology_init
(
&
opal_hwloc_topology
)
...
...
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