summaryrefslogtreecommitdiffstats
path: root/build/linux/configure.ac
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-04 10:21:05 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-04 10:21:05 +0000
commit1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0 (patch)
treee1d289ede093cb91adbca7b5b03b0f5581307865 /build/linux/configure.ac
parent2895e27613dab0815e9f0f2f0ed7853d31f856b4 (diff)
downloadastra-1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0.tar.gz
astra-1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0.tar.bz2
astra-1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0.tar.xz
astra-1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0.zip
Detect arch/gencode options for nvcc
Diffstat (limited to 'build/linux/configure.ac')
-rw-r--r--build/linux/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/linux/configure.ac b/build/linux/configure.ac
index ad1d36c..f58ad0e 100644
--- a/build/linux/configure.ac
+++ b/build/linux/configure.ac
@@ -133,6 +133,14 @@ if test x"$HAVECUDA" = xyes; then
ASTRA_CHECK_NVCC(HAVECUDA,NVCCFLAGS)
fi
AC_MSG_RESULT($HAVECUDA)
+
+if test x"$HAVECUDA" = xyes; then
+ AC_MSG_CHECKING([for nvcc archs])
+ ASTRA_FIND_NVCC_ARCHS([10 12 20 30 35],NVCCFLAGS,NVCCARCHS)
+ AC_MSG_RESULT($NVCCARCHS)
+fi
+
+
AC_SUBST(HAVECUDA)
AC_SUBST(LDFLAGS_CUDA)
AC_SUBST(CPPFLAGS_CUDA)