Skip to main content

broadcast

Function broadcast 

Source
pub fn broadcast<C, T>(
    world: &C,
    root: i32,
    root_value: Option<T>,
) -> Result<T, PlacementError>
where C: Communicator, T: Serialize + DeserializeOwned,
Expand description

Copies one root-owned value to every rank.

Every rank calls this collective with the same communicator and root. Only the root supplies Some; every rank receives an owned value.