Skip to main content

Module version

Module version 

Source
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§

CudaVersion
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 supports before invoking the underlying symbol and surface Error::FeatureNotSupported when the installed driver is too old.

Functions§

supports
true if feature is callable on a CUDA installation of version version or newer.