Trait DeviceCuPool

Source
pub trait DeviceCuPool<T: ArrayLike>: CuPool<T> {
    // Required method
    fn copy_to_host_pool<O>(
        &self,
        from_device_handle: &CuHandle<T>,
        to_host_handle: &mut CuHandle<O>,
    ) -> CuResult<()>
       where O: ArrayLike<Element = T::Element>;
}
Expand description

A device memory pool can copy data from a device to a host memory pool on top.

Required Methods§

Source

fn copy_to_host_pool<O>( &self, from_device_handle: &CuHandle<T>, to_host_handle: &mut CuHandle<O>, ) -> CuResult<()>
where O: ArrayLike<Element = T::Element>,

Takes a handle to a device buffer and copies it into a host buffer pool. It returns a new handle from the host pool with the data from the device handle given.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§