Skip to content

Commit d443a3e

Browse files
committed
Revert "recipe: configure --with-cuda the proper way"
This reverts commit 7d8f52f.
1 parent 57b8a41 commit d443a3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

recipe/build-mpi.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ fi
2828
# CUDA support
2929
build_with_cuda=""
3030
if [[ -n "$CUDA_HOME" ]]; then
31-
build_with_cuda="--with-cuda=$CUDA_HOME --with-cuda-libdir=$CUDA_HOME/lib64/stubs"
31+
build_with_cuda="--with-cuda=yes"
32+
export CFLAGS="$CFLAGS -I$CUDA_HOME/include"
33+
export CXXFLAGS="$CXXFLAGS -I$CUDA_HOME/include"
34+
export LDFLAGS="$LDFLAGS -L$CUDA_HOME/lib64/stubs"
3235
fi
3336

3437
if [[ $CONDA_BUILD_CROSS_COMPILATION == "1" && $target_platform == osx-arm64 ]]; then

0 commit comments

Comments
 (0)