Skip to main content

copy_h_to_d

Function copy_h_to_d 

Source
pub unsafe fn copy_h_to_d<T>(
    dst: DevicePtr,
    src: *const T,
    count: usize,
) -> Result<()>
Expand description

Copy count elements of type T from host memory to device memory.

ยงSafety

src must be valid for count reads. dst must be a valid device allocation of at least count * size_of::<T>() bytes.