Skip to content

Commit 93163c1

Browse files
Fix CUDA V100 compat: add JULIA_CUDA_USE_COMPAT=false env var
GPU tests failed with "Please use a device with at least capability 7.5" because CUDA_Driver_jll v13 dropped V100 (cc 7.0) support. The LocalPreferences.toml wasn't being picked up by the test environment. Fix by setting JULIA_CUDA_USE_COMPAT=false env var in GPU workflow to force using the system CUDA driver instead of the bundled one. Also add CUDA_Driver_jll and CUDA_Runtime_jll to Project.toml deps so LocalPreferences.toml can be read. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b4102bc commit 93163c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/GPU.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- uses: julia-actions/julia-runtest@v1
3131
env:
3232
GROUP: "GPU"
33+
JULIA_CUDA_USE_COMPAT: "false"
3334
- uses: julia-actions/julia-processcoverage@v1
3435
- uses: codecov/codecov-action@v5
3536
with:
@@ -59,3 +60,4 @@ jobs:
5960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6061
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
6162
DATADEPS_ALWAYS_ACCEPT: true
63+
JULIA_CUDA_USE_COMPAT: "false"

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ version = "2.2.0"
55

66
[deps]
77
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
8+
CUDA_Driver_jll = "4ee394cb-3365-5eb0-8335-949819d2adfc"
9+
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
810
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
911
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1012
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"

0 commit comments

Comments
 (0)