Skip to content

Commit

Permalink
Also try to get cuda from path to nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Feb 6, 2025
1 parent 27f269a commit e9107bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,20 @@ if test x$enable_cuda = xyes -o x$enable_cuda = xmaybe; then
if test "$have_valid_cuda" = "no" ; then
STARPU_CHECK_CUDA("$CUDA_ROOT", "$CUDA_INC_PATH", "$CUDA_LIB_PATH")
fi
if test "$have_valid_cuda" = "no" ; then
if test "$NVCC" = "" ; then
AC_PATH_PROG([NVCC], [nvcc], [not-found], [$PATH:/usr/local/cuda/bin])
fi
if test "$NVCC" != not-found ; then
CUDA_ROOT="$(dirname $NVCC)/.."
# Try to find all of cuda just from the availability of nvcc in PATH
STARPU_CHECK_CUDA("$CUDA_ROOT", "$CUDA_ROOT/include", "$CUDA_ROOT/lib")
cuda_dir=$(dirname $NVCC)/..
else
unset NVCC
fi
fi

if test "$have_valid_cuda" = "no" ; then
for f in "/usr/local/cuda" "/c/cuda" "/cygdrive/c/cuda" "/opt/cuda" "$CUDA_ROOT" "$CUDA_PATH" "$CUDA_INC_PATH/.." "$CUDA_INC/.." "$CUDA_BIN/.." "$CUDA_SDK/.." "$CUDA_INSTALL_PATH" "$CUDA_TOOLKIT"; do
if test -n "$f" ; then
Expand Down

0 comments on commit e9107bc

Please sign in to comment.