[cig-commits] r18420 - cs/autoconf/trunk

brad at geodynamics.org brad at geodynamics.org
Sun May 22 08:06:06 PDT 2011


Author: brad
Date: 2011-05-22 08:06:05 -0700 (Sun, 22 May 2011)
New Revision: 18420

Modified:
   cs/autoconf/trunk/cit_cuda.m4
Log:
Added test for CUDA compiler (nvcc).

Modified: cs/autoconf/trunk/cit_cuda.m4
===================================================================
--- cs/autoconf/trunk/cit_cuda.m4	2011-05-22 14:28:52 UTC (rev 18419)
+++ cs/autoconf/trunk/cit_cuda.m4	2011-05-22 15:06:05 UTC (rev 18420)
@@ -36,5 +36,18 @@
   ])dnl
 ])dnl CIT_CUDA_LIB
 
+# ----------------------------------------------------------------------
+# CIT_CUDA_COMPILER
+# ----------------------------------------------------------------------
+# Checking for the CUDA compiler.
+AC_DEFUN([CIT_CUDA_COMPILER], [
+  AC_PATH_PROG(NVCC, nvcc)
+  if test -z "$NVCC" ; then
+    AC_MSG_FAILURE([cannot find 'nvcc' program.])
+    NVCC=`echo "Error: nvcc is not installed." ; false`
+  fi
+])dnl CIT_CUDA_COMPILER
 
+
+
 dnl end of file



More information about the CIG-COMMITS mailing list