1
1

hwloc: do not build hwloc CUDA support if --without-cuda used

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
Jeff Squyres 2017-09-21 08:06:29 -07:00
родитель d704712bad
Коммит f5d51dc2f5

Просмотреть файл

@ -118,6 +118,13 @@ AC_DEFUN([MCA_opal_hwloc_hwloc2a_CONFIG],[
# ensure we are in "embedded" mode
hwloc_mode=embedded
# Per https://github.com/open-mpi/ompi/issues/4219, if
# --without-cuda was specified, be sure to disable it in hwloc,
# too. Note that hwloc uses --disable-cuda, so just set
# enable_cuda=$with_cuda to get the same value that was passed in
# via the top-level --with-cuda CLI option.
enable_cuda=$with_cuda
# Disable NVML support if CUDA support is not built
AS_IF([test "$opal_check_cuda_happy" != "yes"],
[enable_nvml=no])