Просмотр исходного кода

Backport 7802: configure.ac: add option -ccbin to nvcc to specify the C compiler to use

Cyril Roelandt лет назад: 13
Родитель
Сommit
a8857e30ce
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -409,6 +409,9 @@ AC_DEFUN([STARPU_CHECK_CUDA],
 	CPPFLAGS="${SAVED_CPPFLAGS}"
 	unset STARPU_CUDA_LDFLAGS
     else
+	if test x$starpu_windows != xyes ; then
+	    NVCCFLAGS="${NVCCFLAGS} -ccbin \${CC}"
+	fi
 	if test "$__cuda_include_dir" != "no"; then
 	    STARPU_CUDA_CPPFLAGS="-I$__cuda_include_dir"
 	    NVCCFLAGS="${NVCCFLAGS} -I$__cuda_include_dir"