File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
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
+ run : |
68
+ if [[ "${{ matrix.cuda }}" == "cu118" ]]; then
69
+ echo ("TORCH_CUDA_ARCH_LIST='3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9+PTX'") >> $env:GITHUB_ENV
70
+ elif [[ "${{ matrix.cuda }}" == "cu124" ]]; then
71
+ echo ("TORCH_CUDA_ARCH_LIST='5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0+PTX'") >> $env:GITHUB_ENV
72
+ fi
73
+
65
74
- name : Build wheels
66
75
if : matrix.os == 'windows-2019'
67
76
shell : cmd # Use cmd on Windows to avoid bash environment taking priority over MSVC variables
71
80
WITH_CUDA : ${{ matrix.cuda != 'cpu' && '1' || '0' }}
72
81
DISTUTILS_USE_SDK : " 1" # Windows requires this to use vc for building
73
82
SKIP_TORCH_COMPILE : " true"
74
- CIBW_BUILD_VERBOSITY_WINDOWS : " 2"
83
+ CIBW_BUILD_VERBOSITY_WINDOWS : " 1"
84
+ TORCH_CUDA_ARCH_LIST : ${{ env.TORCH_CUDA_ARCH_LIST }}
75
85
76
86
- uses : actions/upload-artifact@v4
77
87
with :
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ rm cuda.exe
10
10
11
11
export WITH_CUDA=1
12
12
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"
14
13
15
14
# Create pip directory if it doesn't exist
16
15
mkdir -p " C:\ProgramData\pip"
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ rm cuda.exe
10
10
11
11
export WITH_CUDA=1
12
12
export CUDA_HOME=" $CUDA_ROOT "
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"
You can’t perform that action at this time.
0 commit comments