Skip to main content

PointToPointBackend

Trait PointToPointBackend 

Source
pub trait PointToPointBackend: CommunicationBackend {
    // Required method
    fn send_receive(
        values: Vec<RoleExactBoundaryValue<Self::Tensor>>,
        route: &Self::CommunicationRoute,
        executor: &Self::Executor,
    ) -> Result<Submission<Vec<Self::Tensor>, Self::CommunicationCompletion>, Self::CommunicationError>;
}
Expand description

Ordered point-to-point boundary transfer on one opaque route.

Required Methods§

Source

fn send_receive( values: Vec<RoleExactBoundaryValue<Self::Tensor>>, route: &Self::CommunicationRoute, executor: &Self::Executor, ) -> Result<Submission<Vec<Self::Tensor>, Self::CommunicationCompletion>, Self::CommunicationError>

Sends or receives the route’s exact ordered tensor bundle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§