allreduce works