1
1

hwloc: disable nvml is CUDA support is not built in Open MPI

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2017-04-05 11:07:07 +09:00
родитель 308d33dca7
Коммит 8d7541f766

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

@ -111,6 +111,10 @@ AC_DEFUN([MCA_opal_hwloc_hwloc1116_CONFIG],[
enable_libxml2=no enable_libxml2=no
enable_xml=yes enable_xml=yes
# Disable NVML support if CUDA support is not built
AS_IF([test "$opal_check_cuda_happy" != "yes"],
[enable_nvml=no])
# hwloc checks for compiler visibility, and its needs to do # hwloc checks for compiler visibility, and its needs to do
# this without "picky" flags. # this without "picky" flags.
opal_hwloc_hwloc1116_save_cflags=$CFLAGS opal_hwloc_hwloc1116_save_cflags=$CFLAGS