From ada174e8c4b8b36f734d60e1ceece95459ce3268 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 3 Jun 2017 15:46:43 +0200 Subject: [PATCH] gtx1050ti with debian nvida-cuda-toolkit 7.5 --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index b3904f7c6..a00a41477 100644 --- a/configure.ac +++ b/configure.ac @@ -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"