Change float to double in allreduce.