pub fn global_max<T: Equivalence + Copy + Ord, C: CommunicatorCollectives>( arr: &[T], comm: &C, ) -> T
Get the maximum value across all ranks