Expand description
CUDA version identifier + feature-gating enum.
CudaVersion uses the same packed encoding NVIDIA uses in
cuDriverGetVersion / cudaRuntimeGetVersion: major * 1000 + minor * 10
— i.e. CUDA 12.6.0 is encoded as 12060.
Structs§
- Cuda
Version - A CUDA major.minor version.
Enums§
- Feature
- Named CUDA capabilities, each gated by the minimum toolkit/driver version
in which they became available. Safe-API crates call
supportsbefore invoking the underlying symbol and surfaceError::FeatureNotSupportedwhen the installed driver is too old.
Functions§
- supports
trueiffeatureis callable on a CUDA installation of versionversionor newer.