Expand description
Zero-copy (host-mapped) memory.
Allows GPU kernels to directly access host memory without explicit transfers. Useful for small, frequently-updated data or when PCIe bandwidth is acceptable.
§How it works
Zero-copy memory is allocated on the host with the
CU_MEMHOSTALLOC_DEVICEMAP flag, which makes it accessible from GPU
kernels via a device pointer obtained from cuMemHostGetDevicePointer.
The GPU reads/writes traverse the PCIe bus on each access, so this is
best suited for data that is accessed infrequently or streamed
sequentially.
§Status
This module is a placeholder. Full implementation is planned for a
future release once the cuMemHostAlloc and
cuMemHostGetDevicePointer function pointers are added to
oxicuda-driver.
Structs§
- Mapped
Buffer - A host-allocated, device-mapped (zero-copy) memory buffer.