Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
*
*/

#define MPIX_CUDA_AWARE_SUPPORT 1
#define MPIX_CUDA_AWARE_SUPPORT @MPIX_CUDA_AWARE_SUPPORT@
OMPI_DECLSPEC int MPIX_Query_cuda_support(void);
4 changes: 4 additions & 0 deletions ompi/mpiext/cuda/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
AC_DEFUN([OMPI_MPIEXT_cuda_CONFIG],[
AC_CONFIG_FILES([ompi/mpiext/cuda/Makefile])
AC_CONFIG_FILES([ompi/mpiext/cuda/c/Makefile])
AC_CONFIG_HEADER([ompi/mpiext/cuda/c/mpiext_cuda_c.h])

AC_DEFINE_UNQUOTED([MPIX_CUDA_AWARE_SUPPORT],[$CUDA_SUPPORT],
[Macro that is set to 1 when CUDA-aware support is configured in and 0 when it is not])

# We compile this whether CUDA support was requested or not. It allows
# us to to detect if we have CUDA support.
Expand Down