modular allreduce