1
1

Fix macro return value when not CUDA-aware

Этот коммит содержится в:
Rolf vandeVaart 2015-08-14 12:50:54 -04:00
родитель a7dcfb2012
Коммит 0e87478e40
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -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);

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

@ -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.