#[non_exhaustive]pub enum Feature {
Show 13 variants
StreamOrderedAllocator,
VirtualMemoryManagement,
LibraryManagement,
GreenContexts,
MulticastObjects,
GraphConditionalNodes,
GraphSwitchNodes,
CudaLaunchKernelEx,
NvJitLink,
TensorMapObjects,
RuntimeLogBuffer,
CudaInitDevice,
RuntimeGreenContexts,
}Expand description
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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StreamOrderedAllocator
Stream-ordered memory allocator (cuMemAllocAsync, pools). CUDA 11.2+.
VirtualMemoryManagement
Virtual memory management (cuMemCreate, cuMemMap, …). CUDA 10.2+.
LibraryManagement
Context-independent library loading (cuLibraryLoadData). CUDA 12.0+.
GreenContexts
Lightweight SM-partitioned contexts. CUDA 12.0+.
MulticastObjects
Multicast objects across multiple GPUs. CUDA 12.0+.
GraphConditionalNodes
Graph conditional (IF/WHILE) nodes. CUDA 12.3+.
GraphSwitchNodes
Graph SWITCH nodes. CUDA 12.8+.
CudaLaunchKernelEx
Extensible kernel launch (cuLaunchKernelEx, cluster dims). CUDA 12.0+.
NvJitLink
nvJitLink modern JIT linker. CUDA 12.0+.
TensorMapObjects
Hopper-only TMA tensor map descriptors. CUDA 11.8+ (HW 9.0+).
RuntimeLogBuffer
Runtime-API log buffer (cudaLogs*). CUDA 12.0+.
CudaInitDevice
cudaInitDevice (initialize primary context without making it current). CUDA 12.0+.
RuntimeGreenContexts
Green-context-aware execution context APIs on the runtime. CUDA 13.1+.
Implementations§
Source§impl Feature
impl Feature
Sourcepub const fn required_version(self) -> CudaVersion
pub const fn required_version(self) -> CudaVersion
The minimum CUDA version at which the feature is available.