Skip to content

Add scatter reduce for JACCL#3901

Open
angeloskath wants to merge 12 commits into
mainfrom
jaccl-scatter-reduce
Open

Add scatter reduce for JACCL#3901
angeloskath wants to merge 12 commits into
mainfrom
jaccl-scatter-reduce

Conversation

@angeloskath

Copy link
Copy Markdown
Member

Like #3900 this is on top of the coordinator changes and the threads changes. I will be rebasing as these are merged.

This PR adds scatter reduce to the JACCL backend. It also removes the ring from the mesh implementation and switches to a scatter gather approach for the high BW all reduce which makes better use of the many cables than the ring reduce. We now use the naive all reduce only for sizes <= 32KB which are completely latency bound.

For the ring backend we can't unfortunately use the ring_pass for the scatter reduce because it requires a buffer of the same size as the input to avoid having race conditions in the read/write location. The approach in the scatter reduce is to only write in the output buffer at parts that have already been copied to the RDMA buffers.

Here is a 4-node all reduce comparison of before and after this PR.

allreduce_benchmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant