pub fn alloc_host<T>(n_elems: usize) -> Result<*mut T>Expand description
Allocate n_elems elements of T in page-locked (pinned) host memory.
Pinned memory enables direct DMA for cuMemcpyHtoD/cuMemcpyDtoH,
bypassing the driver’s internal staging buffer and achieving full PCIe
bandwidth.