Skip to main content

Module cudnn

Module cudnn 

Source
Expand description

Thin Rust safety layer over the cuDNN v9 backend graph FFI.

cudarc 0.19.4 ships the raw bindings for cudnnBackendCreateDescriptor, cudnnBackendSetAttribute, cudnnBackendFinalize, cudnnBackendExecute, etc. but no safe wrapper. This module owns that wrapping so the cuDNN actor’s graph builder can call into the backend API without scattering unsafe everywhere.

Scope: a BackendDescriptor RAII handle plus typed set_* helpers covering the attribute kinds the cuDNN actor uses (i64 / i64 array / f32 / f64 / pointer / BackendDescriptor / enum).

Everything in this module is a no-op on hosts without cuDNN at runtime — actual FFI calls only fire when the descriptor is fed to a real cudnnHandle_t via backend_execute.

Structs§

BackendDescriptor
RAII wrapper around a cudnnBackendDescriptor_t that destroys the descriptor on drop.

Functions§

backend_execute
Run a finalised execution plan against a finalised variant pack.