Fix the embedded hwloc configure to always disable cuda support. Add definitions for updated hwloc objects when old external versions are used
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
fa01fad2ca
Коммит
c341b53475
7
opal/mca/hwloc/external/external.h
поставляемый
7
opal/mca/hwloc/external/external.h
поставляемый
@ -3,7 +3,7 @@
|
|||||||
* Copyright (c) 2016 Research Organization for Information Science
|
* Copyright (c) 2016 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2016 Intel, Inc. All rights reserved.
|
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -43,6 +43,11 @@ BEGIN_C_DECLS
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HWLOC_API_VERSION < 0x00010b00
|
||||||
|
#define HWLOC_OBJ_NUMANODE HWLOC_OBJ_NODE
|
||||||
|
#define HWLOC_OBJ_PACKAGE HWLOC_OBJ_SOCKET
|
||||||
|
#endif
|
||||||
|
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
|
|
||||||
#endif /* MCA_OPAL_HWLOC_EXTERNAL_H */
|
#endif /* MCA_OPAL_HWLOC_EXTERNAL_H */
|
||||||
|
@ -122,35 +122,9 @@ AC_DEFUN([MCA_opal_hwloc_hwloc2a_CONFIG],[
|
|||||||
enable_gl=no
|
enable_gl=no
|
||||||
enable_opencl=no
|
enable_opencl=no
|
||||||
|
|
||||||
# Per https://github.com/open-mpi/ompi/issues/4219, if
|
# Per https://github.com/open-mpi/ompi/pull/4257, ALWAYS
|
||||||
# --without-cuda was specified, be sure to disable it in hwloc,
|
# disable cuda support
|
||||||
# too. Note that hwloc uses --disable-cuda (i.e., a yes or no
|
|
||||||
# value), whereas we use --with-cuda here in Open MPI (i.e., a
|
|
||||||
# yes, no, or path value). Need to translate appropriately.
|
|
||||||
#
|
|
||||||
# Set enable_cuda to yes if:
|
|
||||||
#
|
|
||||||
# 1. --with-cuda was specified (i.e., a human specifically asked
|
|
||||||
# for it)
|
|
||||||
# 2. --with-cuda=blah was specified (i.e., a human specifically
|
|
||||||
# asked for it)
|
|
||||||
# 3. --with-cuda was not specified, but Open MPI is building CUDA
|
|
||||||
# support
|
|
||||||
#
|
|
||||||
# Set enable_cuda to no in all other cases. This logic could be
|
|
||||||
# compressed into a smaller set of if tests, but for readability /
|
|
||||||
# clarity, I left it expanded.
|
|
||||||
AC_MSG_CHECKING([for hwloc --enable-cuda value])
|
|
||||||
enable_cuda=no
|
enable_cuda=no
|
||||||
AS_IF([test "$with_cuda" = "yes"],
|
|
||||||
[enable_cuda=yes],
|
|
||||||
[AS_IF([test -n "$with_cuda" && test "$with_cuda" != "no"],
|
|
||||||
[enable_cuda=yes],
|
|
||||||
[AS_IF([test "$opal_check_cuda_happy" = "yes"],
|
|
||||||
[enable_cuda=yes])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
AC_MSG_RESULT(["$enable_cuda"])
|
|
||||||
|
|
||||||
# Open MPI currently does not use hwloc's NVML support
|
# Open MPI currently does not use hwloc's NVML support
|
||||||
enable_nvml=no
|
enable_nvml=no
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user