Skip to content

[pull] main from Rust-GPU:main#74

Merged
pull[bot] merged 2 commits intoHaofei:mainfrom
Rust-GPU:main
Apr 16, 2026
Merged

[pull] main from Rust-GPU:main#74
pull[bot] merged 2 commits intoHaofei:mainfrom
Rust-GPU:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 16, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…r mapping

cuDNN 9 restructured cudnnStatus_t into a hierarchical numeric system
(2xxx=BAD_PARAM, 3xxx=NOT_SUPPORTED, 4xxx=INTERNAL_ERROR, 5xxx=EXECUTION_FAILED)
and removed several codes present in cuDNN 8.

Changes:
- Add four new CudnnError variants behind #[cfg(cudnn9)]:
  SublibraryVersionMismatch, SerializationVersionMismatch, Deprecated,
  SublibraryLoadingFailed
- Replace the _ => todo!() wildcard in IntoResult::into_result() with a
  category-based fallback that maps cuDNN 9 sub-codes (e.g. BAD_PARAM_NULL_POINTER)
  to their parent category variant using integer division, eliminating the
  runtime panic entirely
- Add wire both new variants in into_raw() for round-trip correctness

Verified against cudnn_graph.h from cuDNN 9.20 (anaconda distribution).
The cudnn crate itself compiles cleanly; only pre-existing cust bindgen
errors prevent a full cargo check -p cudnn from succeeding.

Made-with: Cursor
@pull pull Bot locked and limited conversation to collaborators Apr 16, 2026
@pull pull Bot added the ⤵️ pull label Apr 16, 2026
@pull pull Bot merged commit 60b86e1 into Haofei:main Apr 16, 2026
@pull pull Bot had a problem deploying to github-pages April 16, 2026 07:20 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant