1
1

Add a check for the CUDA 6.0 version of the cuda.h header file.

This commit was SVN r29250.
Этот коммит содержится в:
Rolf vandeVaart 2013-09-26 12:46:06 +00:00
родитель ba17053470
Коммит d67e3077f5
2 изменённых файлов: 18 добавлений и 1 удалений

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

@ -76,6 +76,14 @@ AS_IF([test "$opal_check_cuda_happy"="yes"],
[#include <$opal_cuda_incdir/cuda.h>]),
[])
# If we have CUDA support, check to see if we have CUDA 6.0 support.
# Look for new CUDA 6.0 attribute.
AS_IF([test "$opal_check_cuda_happy"="yes"],
AC_CHECK_HEADER([$opal_cuda_incdir/cuda.h])
AC_CHECK_DECL([CU_POINTER_ATTRIBUTE_BUFFER_ID], [CUDA_SUPPORT_60=1], [CUDA_SUPPORT_60=0],
[#include <$opal_cuda_incdir/cuda.h>]),
[])
AC_MSG_CHECKING([if have cuda support])
if test "$opal_check_cuda_happy" = "yes"; then
AC_MSG_RESULT([yes (-I$with_cuda)])
@ -95,4 +103,8 @@ AM_CONDITIONAL([OPAL_cuda_support_41], [test "x$CUDA_SUPPORT_41" = "x1"])
AC_DEFINE_UNQUOTED([OPAL_CUDA_SUPPORT_41],$CUDA_SUPPORT_41,
[Whether we have CUDA 4.1 support available])
AM_CONDITIONAL([OPAL_cuda_support_60], [test "x$CUDA_SUPPORT_60" = "x1"])
AC_DEFINE_UNQUOTED([OPAL_CUDA_SUPPORT_60],$CUDA_SUPPORT_60,
[Whether we have CUDA 6.0 support available])
])

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

@ -32,7 +32,12 @@ AC_DEFUN([MCA_ompi_common_cuda_CONFIG],[
AM_CONDITIONAL([MCA_ompi_cuda_support_41], [test "x$CUDA_SUPPORT_41" = "x1"])
AC_DEFINE_UNQUOTED([OMPI_CUDA_SUPPORT_41],$CUDA_SUPPORT_41,
[Whether we want support CUDA 4.1 features])
# Check to see if we have features of CUDA 6.0 available as well.
AM_CONDITIONAL([MCA_ompi_cuda_support_60], [test "x$CUDA_SUPPORT_60" = "x1"])
AC_DEFINE_UNQUOTED([OMPI_CUDA_SUPPORT_60],$CUDA_SUPPORT_60,
[Whether we want support CUDA 6.0 features])
# Copy over the includes needed to build CUDA
common_cuda_CPPFLAGS=$opal_datatype_cuda_CPPFLAGS
AC_SUBST([common_cuda_CPPFLAGS])