Skip to content

Commit 2ec5454

Browse files
committed
manually specify arch lists for CUDA builds
1 parent a92f3e7 commit 2ec5454

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cibuildwheel_support/prepare_build_environment_windows_cu118.sh

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ rm cuda.exe
1010

1111
export WITH_CUDA=1
1212
export CUDA_HOME="$CUDA_ROOT"
13+
export TORCH_CUDA_ARCH_LIST="3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9+PTX"
1314

1415
# Create pip directory if it doesn't exist
1516
mkdir -p "C:\ProgramData\pip"

cibuildwheel_support/prepare_build_environment_windows_cu124.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ set -x
55

66
CUDA_ROOT="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4"
77
curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_551.61_windows.exe
8-
./cuda.exe -s nvcc_12.4 cudart_12.4 cublas_dev_12.4 curand_dev_12.4 cusparse_dev_12.4 cusolver_dev_12.4 thrust_12.4 npp_dev_12.4
8+
./cuda.exe -s nvcc_12.4 cudart_12.4 cublas_dev_12.4 curand_dev_12.4 cusparse_dev_12.4 cusolver_dev_12.4
99
rm cuda.exe
1010

1111
export WITH_CUDA=1
1212
export CUDA_HOME="$CUDA_ROOT"
13-
export PATH="$CUDA_ROOT/bin:$PATH"
14-
15-
# Debug CUDA installation
16-
ls -l "$CUDA_ROOT/bin"
17-
"$CUDA_ROOT/bin/nvcc.exe" --version
13+
export TORCH_CUDA_ARCH_LIST="5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0+PTX"

0 commit comments

Comments
 (0)