Skip to content

Commit b900774

Browse files
committed
undo changes. issue is in pytorch package
1 parent 60d5b81 commit b900774

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

.github/workflows/publish.yml

-14
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ jobs:
6262
CPU_TRAIN: ${{ runner.os == 'macOS' && 'true' || 'false' }}
6363
WITH_CUDA: ${{ matrix.cuda != 'cpu' && '1' || '0' }}
6464

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-
7765
- name: Build wheels
7866
if: matrix.os == 'windows-2019'
7967
shell: cmd # Use cmd on Windows to avoid bash environment taking priority over MSVC variables
@@ -84,8 +72,6 @@ jobs:
8472
DISTUTILS_USE_SDK: "1" # Windows requires this to use vc for building
8573
SKIP_TORCH_COMPILE: "true"
8674
CIBW_BUILD_VERBOSITY_WINDOWS: "1"
87-
TORCH_CUDA_ARCH_LIST: ${{ env.TORCH_CUDA_ARCH_LIST }}
88-
CUDA_HOME: ${{ env.CUDA_HOME }}
8975

9076
- uses: actions/upload-artifact@v4
9177
with:

cibuildwheel_support/prepare_build_environment_windows_cu118.sh

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/c
88
./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
99
rm cuda.exe
1010

11+
export WITH_CUDA=1
12+
export CUDA_HOME="$CUDA_ROOT"
13+
1114
# Create pip directory if it doesn't exist
1215
mkdir -p "C:\ProgramData\pip"
1316

cibuildwheel_support/prepare_build_environment_windows_cu124.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ 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
88
./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
10+
11+
export WITH_CUDA=1
12+
export CUDA_HOME="$CUDA_ROOT"

0 commit comments

Comments
 (0)