Skip to content

Commit a5e6801

Browse files
committed
Test CUDA 13.0 on Linux CI.
The CUDA 13.0 Dockerfiles were added in #328. Also update where to look for cuDNN.
1 parent 8ad92c3 commit a5e6801

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci_linux.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,18 @@ jobs:
3434
- name: Ubuntu-24.04 / CUDA-12.8.1 / ARM64
3535
image: "ghcr.io/rust-gpu/rust-cuda-ubuntu24-cuda12:latest"
3636
runner: ubuntu-24.04-arm
37+
- name: Ubuntu-24.04 / CUDA-13.0.2 / x86_64
38+
image: "ghcr.io/rust-gpu/rust-cuda-ubuntu24-cuda13:latest"
39+
runner: ubuntu-latest
40+
- name: Ubuntu-24.04 / CUDA-13.0.2 / ARM64
41+
image: "ghcr.io/rust-gpu/rust-cuda-ubuntu24-cuda13:latest"
42+
runner: ubuntu-24.04-arm
3743
- name: RockyLinux-9 / CUDA-12.8.1 / x86_64
3844
image: "ghcr.io/rust-gpu/rust-cuda-rockylinux9-cuda12:latest"
3945
runner: ubuntu-latest
46+
- name: RockyLinux-9 / CUDA-13.0.2 / x86_64
47+
image: "ghcr.io/rust-gpu/rust-cuda-rockylinux9-cuda13:latest"
48+
runner: ubuntu-latest
4049
outputs:
4150
# Output the result of the permission check
4251
actor_has_write_permission: ${{ steps.check_access.outputs.require-result }}

crates/cudnn-sys/build/cudnn_sdk.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ impl CudnnSdk {
6262
let cudnn_include_dir = env::var_os("CUDNN_INCLUDE_DIR");
6363

6464
#[cfg(not(target_os = "windows"))]
65-
const CUDNN_DEFAULT_PATHS: &[&str] = &["/usr/include", "/usr/local/include"];
65+
const CUDNN_DEFAULT_PATHS: &[&str] = &[
66+
"/usr/include",
67+
"/usr/local/include",
68+
// CUDA 13 seems to have moved the headers into arch-specific directories.
69+
"/usr/include/x86_64-linux-gnu",
70+
"/usr/include/aarch64-linux-gnu",
71+
"/usr/local/include/x86_64-linux-gnu",
72+
"/usr/local/include/aarch64-linux-gnu",
73+
];
6674
#[cfg(target_os = "windows")]
6775
const CUDNN_DEFAULT_PATHS: &[&str] = &[
6876
"C:/Program Files/NVIDIA/CUDNN/v9.x/include",

0 commit comments

Comments
 (0)