Skip to content

hwloc: clarify --with-hwloc behavior #7252

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 17 additions & 19 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -1252,28 +1252,26 @@ MISCELLANEOUS SUPPORT LIBRARIES
this option is only needed for special configurations.

--with-hwloc(=value)
Build hwloc support (default: enabled). This option specifies where
to find the hwloc support headers and library. The following values
are permitted:
hwloc is a support library that provides processor and memory
affinity information for NUMA platforms. It is required by Open
MPI. Therefore, specifying --with-hwloc=no (or --without-hwloc) is
disallowed.

internal: Use Open MPI's internal copy of hwloc.
external: Use an external hwloc installation (rely on default
compiler and linker paths to find it)
<no value>: Same as "internal".
<directory>: Specify the location of a specific hwloc
installation to use
By default (i.e., if --with-hwloc is not specified, or if
--with-hwloc is specified without a value), Open MPI will first try
to find/use an hwloc installation on the current system. If Open
MPI cannot find one, it will fall back to build and use the internal
copy of hwloc included in the Open MPI source tree.

By default (or if --with-hwloc is specified with no VALUE), Open MPI
will build and use the copy of hwloc that it has in its source tree.
However, if the VALUE is "external", Open MPI will look for the
relevant hwloc header files and library in default compiler / linker
locations. Or, VALUE can be a directory tree where the hwloc header
file and library can be found. This option allows operating systems
to include Open MPI and use their default hwloc installation instead
of Open MPI's bundled hwloc.
Alternatively, the --with-hwloc option can be used to specify where
to find the hwloc support headers and library. The following values
are permitted:

hwloc is a support library that provides processor and memory
affinity information for NUMA platforms.
internal: Only use Open MPI's internal copy of hwloc.
external: Only use an external hwloc installation (rely on
default compiler and linker paths to find it).
<directory>: Only use the specific hwloc installation found in
the specified directory.

--with-hwloc-libdir=<directory>
Look in directory for the hwloc libraries. This option is only
Expand Down
4 changes: 4 additions & 0 deletions opal/mca/hwloc/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ AC_DEFUN([MCA_opal_hwloc_CONFIG_REQUIRE],[
AC_MSG_WARN([an external copy that you supply.])
AC_MSG_ERROR([Cannot continue])])

# check for no-op
AS_IF([test "$with_hwloc" = "yes"],
[with_hwloc=""])

# set default
opal_hwloc_base_enable_xml=0

Expand Down