Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NCCL operation for allgather #1952

Merged
merged 7 commits into from May 17, 2020
Merged

Conversation

zhouxianhao
Copy link
Contributor

This PR is to improve the performance of allgather function when HOROVOD_GPU_ALLGATHER=NCCL. Using ncclAllgather when each rank has the same shape, otherwise using ncclBroadcast. Using ncclAllgather is faster than using ncclBroadcast, and using ncclBroadcast is faster then using MPI_Allgatherv.

Signed-off-by: jathonzhou <jathonzhou@tencent.com>
jathonzhou added 2 commits May 15, 2020 16:46
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
@tgaddair tgaddair added this to the 0.20.0 milestone May 15, 2020
Copy link
Collaborator

@romerojosh romerojosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just left a few comments.

horovod/common/operations.cc Outdated Show resolved Hide resolved
horovod/common/ops/nccl_operations.cc Show resolved Hide resolved
horovod/common/ops/nccl_operations.cc Show resolved Hide resolved
jathonzhou added 4 commits May 16, 2020 13:34
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
Signed-off-by: jathonzhou <jathonzhou@tencent.com>
Copy link
Collaborator

@romerojosh romerojosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, LGTM!

@romerojosh romerojosh merged commit 16925bd into horovod:master May 17, 2020
@zhouxianhao zhouxianhao deleted the nccl_allgather branch May 18, 2020 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants