From e4ce46d4340797ccf0e6626da1a297207f7083b6 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 fb609882c..bb4215949 100644 --- a/configure.ac +++ b/configure.ac @@ -259,6 +259,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 @@ -287,6 +290,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"