pub fn copy_htod<T: Copy>(
dst: &mut DeviceBuffer<T>,
src: &[T],
) -> CudaResult<()>Expand description
Copies data from a host slice into a device buffer (host-to-device).
This is a synchronous operation: it blocks the calling thread until the transfer completes.
ยงErrors
CudaError::InvalidValueifsrc.len() != dst.len().- Other driver errors from
cuMemcpyHtoD_v2.