Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-06-06 16:16:10 +0400
committerTobias Grosser <grosser@fim.uni-passau.de>2012-06-06 16:16:10 +0400
commit88aeaf6ac4257627d6bd92e2b2ef89ff5a572e0e (patch)
tree4530654dcc20fa4c0e4df4768ffff66926d5d507 /polly/autoconf
parentb27ea0278486a3b3578ebb565b216bfc5a1f43e7 (diff)
Detect the cuda library available.
We will use the cuda library for the upcoming automatic GPGPU code generation. Contributed by: Yabin Hu <yabin.hwu@gmail.com> llvm-svn: 158064
Diffstat (limited to 'polly/autoconf')
-rw-r--r--polly/autoconf/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/autoconf/configure.ac b/polly/autoconf/configure.ac
index 5c34f866435e..a6d8084f2957 100644
--- a/polly/autoconf/configure.ac
+++ b/polly/autoconf/configure.ac
@@ -111,6 +111,11 @@ fi
AC_SUBST(scoplib_rpath)
+dnl Check if CUDA lib there
+find_lib_and_headers([cuda], [cuda.h], [cuda])
+AS_IF([test "x$cuda_found" = "xyes"],
+ [AC_DEFINE([CUDALIB_FOUND],[1],[Define if cudalib found])])
+
dnl **************************************************************************
dnl * Create the output files
dnl **************************************************************************