allreduce in comm.cpp tested.