Skip to content

Commit ea93cbe

Browse files
committed
configure.ac: accept also CUDACXX for nvcc
Primarily used by CMake but if no nvcc was found, we can try this as well.
1 parent 6c83b6d commit ea93cbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ if test $cuda_req != no; then
520520
# nvcc is intentional here
521521
AC_PATH_PROG(NVCC, nvcc, [], [$CUDA_PATH_SEP$PATH]dnl
522522
[$PATH_SEPARATOR/opt/cuda/bin$PATH_SEPARATOR/usr/local/cuda/bin])
523+
if -z "$NVCC" && -e "$CUDACXX"; then
524+
NVCC=$CUDACXX
525+
fi
523526
fi
524527

525528
if test -n "${NVCC?}" && test "${cross_compile?}" = no && test "${cuda_req?}" != no

0 commit comments

Comments
 (0)