File tree 3 files changed +6
-14
lines changed
3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 62
62
CPU_TRAIN : ${{ runner.os == 'macOS' && 'true' || 'false' }}
63
63
WITH_CUDA : ${{ matrix.cuda != 'cpu' && '1' || '0' }}
64
64
65
- - name : Set CUDA arch list for Windows
66
- if : matrix.os == 'windows-2019'
67
- shell : bash -l {0}
68
- run : |
69
- if [[ "${{ matrix.cuda }}" == "cu118" ]]; then
70
- echo 'TORCH_CUDA_ARCH_LIST="3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9+PTX"' >> $GITHUB_ENV
71
- echo 'CUDA_HOME="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8"' >> $GITHUB_ENV
72
- elif [[ "${{ matrix.cuda }}" == "cu124" ]]; then
73
- echo 'TORCH_CUDA_ARCH_LIST="5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0+PTX"' >> $GITHUB_ENV
74
- echo 'CUDA_HOME="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4"' >> $GITHUB_ENV
75
- fi
76
-
77
65
- name : Build wheels
78
66
if : matrix.os == 'windows-2019'
79
67
shell : cmd # Use cmd on Windows to avoid bash environment taking priority over MSVC variables
84
72
DISTUTILS_USE_SDK : " 1" # Windows requires this to use vc for building
85
73
SKIP_TORCH_COMPILE : " true"
86
74
CIBW_BUILD_VERBOSITY_WINDOWS : " 1"
87
- TORCH_CUDA_ARCH_LIST : ${{ env.TORCH_CUDA_ARCH_LIST }}
88
- CUDA_HOME : ${{ env.CUDA_HOME }}
89
75
90
76
- uses : actions/upload-artifact@v4
91
77
with :
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/c
8
8
./cuda.exe -s nvcc_11.8 cudart_11.8 cublas_dev_11.8 curand_dev_11.8 cusparse_dev_11.8 cusolver_dev_11.8 thrust_11.8
9
9
rm cuda.exe
10
10
11
+ export WITH_CUDA=1
12
+ export CUDA_HOME=" $CUDA_ROOT "
13
+
11
14
# Create pip directory if it doesn't exist
12
15
mkdir -p " C:\ProgramData\pip"
13
16
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ CUDA_ROOT="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4"
7
7
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
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
9
9
rm cuda.exe
10
+
11
+ export WITH_CUDA=1
12
+ export CUDA_HOME=" $CUDA_ROOT "
You can’t perform that action at this time.
0 commit comments