Skip to content

Commit

Permalink
backend/cuda: Use NVCC_FLAGS with user-provided NVCC
Browse files Browse the repository at this point in the history
These flags were ignored when the user specified a compiler other than
the nvcc included in the CUDA installation. Make sure to include them
for consistency. See pmodels/mpich#6954.

Signed-off-by: Ken Raffenetti <raffenet@mcs.anl.gov>
  • Loading branch information
raffenet committed Apr 2, 2024
1 parent eac9e40 commit 4d3da65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/cuda/subconfigure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ if test "$with_cuda" != "no" ; then
# append the flags to be passed to nvcc
NVCC="$nvcc_bin $NVCC_FLAGS"
else
NVCC="$NVCC $NVCC_FLAGS"
AC_MSG_WARN([Using user-provided nvcc: '${NVCC}'])
fi

Expand Down

0 comments on commit 4d3da65

Please sign in to comment.