-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hwloc: add support for hwloc v1.5 #3083
Conversation
opal/mca/hwloc/base/hwloc_base_dt.c
Outdated
/* use the hwloc dup function */ | ||
return hwloc_topology_dup(dest, src); | ||
#else | ||
/* hwloc v1.5 does not support hwloc_topology_dup. | ||
* note this copy function is not used anywhere in the code base yet */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this comment to:
/* hwloc_topology_dup() was introduced in hwloc v1.8.0.
* Note that as of March 2017, opal_hwloc_copy() is not (yet?) used in the code base anywhere. */
@@ -1549,6 +1550,10 @@ char* opal_hwloc_base_find_coprocessors(hwloc_topology_t topo) | |||
OPAL_OUTPUT_VERBOSE((5, opal_hwloc_base_framework.framework_output, | |||
"hwloc:base:find_coprocessors: hosting coprocessors %s", | |||
(NULL == cpstring) ? "NONE" : cpstring)); | |||
#else | |||
OPAL_OUTPUT_VERBOSE((5, opal_hwloc_base_framework.framework_output, | |||
"hwloc:base:find_coprocessors: this hwloc version cannot find any coprocessor")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this message to:
hwloc:base:find_coprocessors: the version of hwloc that Open MPI was built against (v%d.%d.%d) does not support detecting coprocessors
hwloc v1.5 does not support HWLOC_OBJ_OSDEV_COPROC nor hwloc_topology_dup(), so for this version : - do not search for coprocessors - do not try hwloc_topology_dup(), note this is not used anywhere in the code base Thanks Jeff for helping with the wording Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
f1d5a5f
to
7e01be6
Compare
@jsquyres done, thanks for helping with the wording. |
@jsquyres shall i merge this PR now ? |
hwloc v1.5 does not support HWLOC_OBJ_OSDEV_COPROC
nor hwloc_topology_dup(), so for this version :
used anywhere in the code base
Signed-off-by: Gilles Gouaillardet gilles@rist.or.jp