Skip to content

Commit 10ea991

Browse files
committed
hwloc: add CUDA include dir to CPPFLAGS
so hwloc configury can find nvml.h when CUDA support is built Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 8d7541f commit 10ea991

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opal/mca/hwloc/hwloc1116/configure.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ AC_DEFUN([MCA_opal_hwloc_hwloc1116_CONFIG],[
119119
# this without "picky" flags.
120120
opal_hwloc_hwloc1116_save_cflags=$CFLAGS
121121
CFLAGS=$OPAL_CFLAGS_BEFORE_PICKY
122+
AS_IF([test -n "$opal_datatype_cuda_CPPFLAGS"],
123+
[CPPFLAGS="$CPPFLAGS $opal_datatype_cuda_CPPFLAGS"])
124+
122125
HWLOC_SETUP_CORE([opal/mca/hwloc/hwloc1116/hwloc],
123126
[AC_MSG_CHECKING([whether hwloc configure succeeded])
124127
AC_MSG_RESULT([yes])

0 commit comments

Comments
 (0)