Skip to content

API Overview ​

cuda.zig provides a layered architecture: high-level typed abstractions built on top of low-level runtime and driver bindings, all resolving dynamically with zero link-time dependencies.

Top-Level Namespaces ​

ModuleDescription
cuda.deviceGPU enumeration, properties, selection, and P2P peer access
cuda.memoryTyped buffers (DeviceBuffer, PinnedBuffer, UnifiedBuffer, PoolBuffer) and raw allocators
cuda.streamAsynchronous execution streams, priorities, and events
cuda.kernelDriver kernel launch, LaunchConfig, modules, and cuda.occupancy
cuda.tensorHigh-level Tensor(T) with cuBLAS & CPU fallback matrix operations
cuda.nvrtcRuntime CUDA C++ compilation to PTX via NVRTC
cuda.fallbackAutomatic CPU fallback execution engine
cuda.profilerProfiler session markers (start, stop, ProfilerGuard)
cuda.versionDriver & Runtime version detection and capability flags

Released under the MIT License.