gtx1050ti with debian nvida-cuda-toolkit 7.5

This commit is contained in:
rlar 2017-06-03 15:46:43 +02:00
parent fe9f8adc0e
commit ada174e8c4
1 changed files with 9 additions and 0 deletions

View File

@ -255,6 +255,9 @@ if test "x$enable_cuspice" = xyes; then
SM_35=$(echo $NVCC_OUTPUT | grep "sm_35")
C_50=$(echo $NVCC_OUTPUT | grep "compute_50")
SM_50=$(echo $NVCC_OUTPUT | grep "sm_50")
C_52=$(echo $NVCC_OUTPUT | grep "compute_52")
SM_52=$(echo $NVCC_OUTPUT | grep "sm_52")
AC_MSG_RESULT([CUSPICE will be compiled for the following architectures:])
if test "$C_20" != "" && test "$SM_20" != ""
then
@ -283,6 +286,12 @@ if test "x$enable_cuspice" = xyes; then
CUDA_CFLAGS+=" -gencode arch=compute_50,\"code=sm_50\""
AC_MSG_RESULT([ Compute Capability: 5.0])
fi
if test "$C_52" != "" && test "$SM_52" != ""
then
CUDA_CFLAGS+=" -gencode arch=compute_52,\"code=sm_52\""
CUDA_CFLAGS+=" -gencode arch=compute_52,\"code=compute_52\""
AC_MSG_RESULT([ Compute Capability: 5.2])
fi
CUDA_CFLAGS+=" -DCOMPILED_BY_NVCC"