Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 24ecd80

Browse files
committed
refactor code
1 parent ae97461 commit 24ecd80

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

.github/workflows/build-magma-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: windows-2019
1818
strategy:
1919
matrix:
20-
cuda_version: ["126", "124", "121", "118"]
20+
cuda_version: ["126", "124", "118"]
2121
config: ["Release", "Debug"]
2222
env:
2323
CUDA_VERSION: ${{ matrix.cuda_version }}
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build MAGMA and push to S3
3333
run: windows/internal/build_magma.bat
3434
- name: Save as artifact
35-
uses: actions/upload-artifact@v4
35+
uses: actions/upload-artifact@v2
3636
with:
3737
path: magma_*_cuda*_*.7z
3838
push-windows-magma:

conda/pytorch-nightly/bld.bat

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@ if "%desired_cuda%" == "11.8" (
2525
set TORCH_CUDA_ARCH_LIST=%TORCH_CUDA_ARCH_LIST%;3.7+PTX
2626
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
2727
)
28-
if "%desired_cuda%" == "12.1" (
29-
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
30-
)
31-
if "%desired_cuda%" == "12.4" (
32-
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
33-
)
34-
if "%desired_cuda%" == "12.6" (
28+
if "%desired_cuda:~0,3%" == "12." (
3529
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
3630
)
3731

windows/internal/build_magma.bat

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ cd magma
3535
mkdir build && cd build
3636

3737
set GPU_TARGET=All
38-
if "%CUVER_NODOT%" == "126" (
39-
set CUDA_ARCH_LIST=-gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90
40-
)
41-
if "%CUVER_NODOT%" == "124" (
42-
set CUDA_ARCH_LIST=-gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90
43-
)
44-
if "%CUVER_NODOT%" == "121" (
38+
if "%CUVER_NODOT:~0,2%" == "12"(
4539
set CUDA_ARCH_LIST=-gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90
4640
)
4741
if "%CUVER_NODOT%" == "118" (

windows/internal/driver_update.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set WIN_DRIVER_VN=560.94
1+
set WIN_DRIVER_VN=528.89
22
set "DRIVER_DOWNLOAD_LINK=https://ossci-windows.s3.amazonaws.com/%WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe"
33
curl --retry 3 -kL %DRIVER_DOWNLOAD_LINK% --output %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe
44
if errorlevel 1 exit /b 1

0 commit comments

Comments
 (0)