Skip to content
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

Merged
merged 1 commit into from
Mar 7, 2017

Conversation

ggouaillardet
Copy link
Contributor

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

Signed-off-by: Gilles Gouaillardet gilles@rist.or.jp

/* 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 */
Copy link
Member

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"));
Copy link
Member

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>
@ggouaillardet
Copy link
Contributor Author

@jsquyres done, thanks for helping with the wording.
i made jsquyres#1 and jsquyres#2 so this can be pulled directly into #3067 and #3066

@ggouaillardet
Copy link
Contributor Author

@jsquyres shall i merge this PR now ?
(so you can move forward and merge the PR i made to your repo branches for v2

@jsquyres jsquyres merged commit c2adf35 into open-mpi:master Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants