pub fn global_size<T, C: CommunicatorCollectives>(arr: &[T], comm: &C) -> usize
Get global size of a distributed array.
Computes the size and broadcoasts it to all ranks.