Last updated: 2026-06-12
CUDA Runtime
C
Shared C import for the CUDA shim — all CUDA backend modules import from here to ensure type identity across compilation units (mirrors src/metal/c.zig).
Keeping the `@cImport` in one place avoids duplicate opaque C types across Zig compilation units, which is critical for safely passing shim handles between the CUDA device, buffer, pipeline, and command helpers.
1 exports shown
constant
shim
pub const shim = @cImport(@cInclude("cuda_shim.h")) Raw CUDA shim C bindings (Driver API + NVRTC) imported from cuda_shim.h.