Skip to content

Commit 8d7541f

Browse files
committed
hwloc: disable nvml is CUDA support is not built in Open MPI
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 308d33d commit 8d7541f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/mca/hwloc/hwloc1116/configure.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ AC_DEFUN([MCA_opal_hwloc_hwloc1116_CONFIG],[
111111
enable_libxml2=no
112112
enable_xml=yes
113113

114+
# Disable NVML support if CUDA support is not built
115+
AS_IF([test "$opal_check_cuda_happy" != "yes"],
116+
[enable_nvml=no])
117+
114118
# hwloc checks for compiler visibility, and its needs to do
115119
# this without "picky" flags.
116120
opal_hwloc_hwloc1116_save_cflags=$CFLAGS

0 commit comments

Comments
 (0)