Module cuda_min

Module cuda_min 

Source
Expand description

2026-09-25: Minimal CUDA driver-API FFI for metrale-storage: context and stream, device and pinned host buffers, async copies, stream sync.

Owner: metrale-storage. Invariants:

  • A non-zero driver status becomes an Err naming the call, except in the Drop impls, which ignore the status of the free or destroy call.

Re-exports§

pub use crate::cuda_module::CudaEvent;
pub use crate::cuda_module::CudaModule;
pub use crate::cuda_module::launch_kernel;

Structs§

CudaCtx
DeviceBuffer
PinnedBuffer

Functions§

copy_d_to_h_async
copy_h_to_d_async
mem_info
2026-09-25: The current context’s free and total device memory in bytes (cuMemGetInfo).
stream_sync