pub fn memcpy_h2d<T: Copy>(dst: DevicePtr, src: &[T]) -> CudaRtResult<()>
Copy a slice of host data to a device allocation.
Propagates driver errors.