singe-cuda
Safe and low-level CUDA wrappers used by Singe.
This crate wraps CUDA Driver, CUDA Runtime, NVRTC, NVVM, NVTX, contexts, streams, events, device memory, modules, kernels, graphs, IPC, and JIT helpers. It keeps unsafe FFI calls at the boundary while still exposing enough low-level control for inference runtimes and NVIDIA library wrappers.
Examples
let ctx = create?;
let stream = ctx.create_stream?;
let mut memory = create?;
memory.copy_from_host?;
stream.synchronize?;
println!;