1
1

Merge pull request #4245 from jsquyres/pr/disable-hwloc-cuda

hwloc: do not build hwloc CUDA support if --without-cuda used (and also always disable hwloc GL and OpenCL support)
Этот коммит содержится в:
Jeff Squyres 2017-09-21 13:43:01 -04:00 коммит произвёл GitHub
родитель d704712bad 84a721d17a
Коммит 9708e9dd21

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

@ -118,6 +118,17 @@ AC_DEFUN([MCA_opal_hwloc_hwloc2a_CONFIG],[
# ensure we are in "embedded" mode
hwloc_mode=embedded
# GL and OpenCL OS devices aren't used in OMPI
enable_gl=no
enable_opencl=no
# 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])