From 1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 4 Apr 2014 10:21:05 +0000 Subject: Detect arch/gencode options for nvcc --- build/linux/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build/linux/configure.ac') 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) -- cgit v1.2.3