allreduce using bytebuffers