Skip to main content

CopyToHostDispatch

Trait CopyToHostDispatch 

Source
pub trait CopyToHostDispatch: Send + 'static {
    // Required methods
    fn dtype(&self) -> DType;
    fn run(
        self: Box<Self>,
        stream: Arc<CudaStream>,
        completion: Arc<dyn CompletionStrategy>,
    );
}
Expand description

Trait object behind crate::device::DeviceMsg::CopyToHost. Carries the typed source GpuRef<T> plus host destination buffer.

Required Methods§

Source

fn dtype(&self) -> DType

Source

fn run( self: Box<Self>, stream: Arc<CudaStream>, completion: Arc<dyn CompletionStrategy>, )

Implementors§