Skip to main content

copy_htod

Function copy_htod 

Source
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