diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-06-06 12:16:10 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-06-06 12:16:10 +0000 |
commit | 88aeaf6ac4257627d6bd92e2b2ef89ff5a572e0e (patch) | |
tree | 4530654dcc20fa4c0e4df4768ffff66926d5d507 /polly/autoconf | |
parent | b27ea0278486a3b3578ebb565b216bfc5a1f43e7 (diff) | |
download | llvm-88aeaf6ac4257627d6bd92e2b2ef89ff5a572e0e.zip llvm-88aeaf6ac4257627d6bd92e2b2ef89ff5a572e0e.tar.gz llvm-88aeaf6ac4257627d6bd92e2b2ef89ff5a572e0e.tar.bz2 |
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.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/autoconf/configure.ac b/polly/autoconf/configure.ac index 5c34f86..a6d8084 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 ************************************************************************** |