|
@@ -1005,13 +1005,8 @@ AC_DEFUN([STARPU_CHECK_CUDA],
|
|
rm -f cuda_test*
|
|
rm -f cuda_test*
|
|
fi
|
|
fi
|
|
|
|
|
|
- # nvcc is a wrapper around GCC, and calls it with the -dumpspecs
|
|
|
|
- # option, which is GCC specific. If $CC does not support -dumpspecs, we
|
|
|
|
- # should let nvcc choose another compiler (by default, gcc, if it is
|
|
|
|
- # installed). If gcc is not installed, the build will probably fail.
|
|
|
|
- $CC -dumpspecs >/dev/null 2>&1
|
|
|
|
- if test $? -eq 0 -a x$starpu_windows != xyes; then
|
|
|
|
- NVCCFLAGS="${NVCCFLAGS} -ccbin \${CC}"
|
|
|
|
|
|
+ if test -n "$NVCC_CC"; then
|
|
|
|
+ NVCCFLAGS="${NVCCFLAGS} -ccbin \${NVCC_CC}"
|
|
fi
|
|
fi
|
|
if test "$__cuda_include_dir" != "no"; then
|
|
if test "$__cuda_include_dir" != "no"; then
|
|
STARPU_CUDA_CPPFLAGS="-I$__cuda_include_dir"
|
|
STARPU_CUDA_CPPFLAGS="-I$__cuda_include_dir"
|
|
@@ -1099,7 +1094,6 @@ if test x$enable_cuda = xyes; then
|
|
#in case this is a 64bit setup, we tell nvcc to use a -m64 flag
|
|
#in case this is a 64bit setup, we tell nvcc to use a -m64 flag
|
|
if test x$SIZEOF_VOID_P = x8; then
|
|
if test x$SIZEOF_VOID_P = x8; then
|
|
NVCCFLAGS="${NVCCFLAGS} -m64"
|
|
NVCCFLAGS="${NVCCFLAGS} -m64"
|
|
- AC_SUBST(NVCCFLAGS)
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
AC_CHECK_HEADERS([cuda_gl_interop.h])
|
|
AC_CHECK_HEADERS([cuda_gl_interop.h])
|
|
@@ -1169,6 +1163,7 @@ if test x$enable_cuda = xyes; then
|
|
fi
|
|
fi
|
|
|
|
|
|
AC_ARG_VAR([NVCC], [CUDA compiler])
|
|
AC_ARG_VAR([NVCC], [CUDA compiler])
|
|
|
|
+AC_ARG_VAR([NVCC_CC], [C compiler for CUDA compiler])
|
|
AC_ARG_VAR([NVCCFLAGS], [CUDA compiler flags])
|
|
AC_ARG_VAR([NVCCFLAGS], [CUDA compiler flags])
|
|
|
|
|
|
###############################################################################
|
|
###############################################################################
|