Skip to main content

scatter

Function scatter 

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

Distributes one owned shard from the root to each rank.

Only the root supplies Some, containing exactly one shard per rank. Every rank receives its rank-indexed owned shard.