Skip to content

Commit acd6a4f

Browse files
Add CUDA 12.9 to build/test workflows
1 parent 6bd94c2 commit acd6a4f

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

.github/scripts/build-cuda.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ if [[ -v cuda_targets ]]; then
1111
elif [ "${build_arch}" = "aarch64" ]; then
1212
build_capability="75;80;90"
1313

14-
# CUDA 12.8: Add sm100
15-
[[ "${cuda_version}" == 12.8.* ]] && build_capability="75;80;90;100"
14+
# CUDA 12.8+: Add sm100/sm120
15+
[[ "${cuda_version}" == 12.8.* || "${cuda_version}" == 12.9.* ]] && build_capability="75;80;90;100;120"
1616
else
1717
# By default, target Maxwell through Hopper.
1818
build_capability="50;52;60;61;70;75;80;86;89;90"
1919

20-
# CUDA 12.8: Add sm100 and sm120; remove < sm75 to align with PyTorch 2.7+cu128 minimum
21-
[[ "${cuda_version}" == 12.8.* ]] && build_capability="75;80;86;89;90;100;120"
20+
# CUDA 12.8+: Add sm100 and sm120; remove < sm75 to align with PyTorch 2.7+cu128 minimum
21+
[[ "${cuda_version}" == 12.8.* || "${cuda_version}" == 12.9.* ]] && build_capability="75;80;86;89;90;100;120"
2222
fi
2323

2424
[[ "${build_os}" = windows-* ]] && python3 -m pip install ninja

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ jobs:
7272
- os: windows-latest
7373
arch: x86_64
7474
cuda_version:
75-
["11.8.0", "12.0.1", "12.1.1", "12.2.2", "12.3.2", "12.4.1", "12.5.1", "12.6.3", "12.8.1"]
75+
["11.8.0", "12.0.1", "12.1.1", "12.2.2", "12.3.2", "12.4.1", "12.5.1", "12.6.3", "12.8.1", "12.9.0"]
7676
runs-on: ${{ matrix.os }}
7777
steps:
7878
- uses: actions/checkout@v4
7979
# Windows: We install Cuda on the agent (slow)
80-
- uses: Jimver/[email protected].22
80+
- uses: Jimver/cuda-toolkit@f1b76035ffe6d08118acdd33faf5ce002cf7c023 # v0.2.25
8181
if: startsWith(matrix.os, 'windows')
8282
id: cuda-toolkit
8383
with:

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
build-cuda:
5050
strategy:
5151
matrix:
52-
cuda_version: ["11.8.0", "12.6.3", "12.8.1"]
52+
cuda_version: ["11.8.0", "12.6.3", "12.8.1", "12.9.0"]
5353
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2025]
5454
include:
5555
- os: ubuntu-22.04
@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/checkout@v4
6565

6666
- name: Install CUDA Toolkit
67-
uses: Jimver/[email protected].23
67+
uses: Jimver/cuda-toolkit@f1b76035ffe6d08118acdd33faf5ce002cf7c023 # v0.2.25
6868
if: startsWith(matrix.os, 'windows')
6969
id: cuda-toolkit
7070
with:
@@ -231,7 +231,7 @@ jobs:
231231
os: [ubuntu-22.04, windows-2025]
232232
arch: [x86_64]
233233
gpu: [T4, L40S]
234-
cuda_version: ["11.8.0", "12.6.3", "12.8.1"]
234+
cuda_version: ["11.8.0", "12.6.3", "12.8.1", "12.9.0"]
235235
include:
236236
- cuda_version: "11.8.0"
237237
torch_version: "2.2.2"
@@ -242,6 +242,9 @@ jobs:
242242
- cuda_version: "12.8.1"
243243
torch_version: "2.7.1"
244244
pypi_index: "https://download.pytorch.org/whl/cu128"
245+
- cuda_version: "12.9.0"
246+
torch_version: "2.8.0"
247+
pypi_index: "https://download.pytorch.org/whl/nightly/cu129"
245248

246249

247250
# Linux L40S runners
@@ -274,12 +277,14 @@ jobs:
274277
gpu: T4
275278
runner: CUDA-Windows-x64
276279
cuda_version: "11.8.0"
277-
torch_version: "2.7.1"
280+
torch_version: "2.7.1" # Note: this is the last PyTorch release supporting CUDA 11.8.
278281
pypi_index: "https://download.pytorch.org/whl/cu118"
279282

280283
exclude:
281284
# Our current T4 Windows runner has a driver too old (471.11)
282285
# and cannot support CUDA 12+. Skip for now.
286+
- os: windows-2025
287+
cuda_version: "12.9.0"
283288
- os: windows-2025
284289
cuda_version: "12.8.1"
285290
- os: windows-2025
@@ -311,7 +316,7 @@ jobs:
311316

312317
- name: Install dependencies
313318
run: |
314-
pip install torch==${{ matrix.torch_version }} --index-url ${{ matrix.pypi_index }}
319+
pip install --pre torch==${{ matrix.torch_version }} --index-url ${{ matrix.pypi_index }}
315320
pip install -e ".[test]"
316321
pip install pytest-cov
317322

0 commit comments

Comments
 (0)