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

[NewComm]No.7 compatiable upgrade for global_gather_op. #57305

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Sep 14, 2023

PR types

Others

PR changes

Others

Description

  • compatiable upgrade for global_gather_op.

@paddle-bot
Copy link

paddle-bot bot commented Sep 14, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Sep 14, 2023
auto send_buf = x->data<T>();
auto recv_buf = out->mutable_data<T>(out_dims, place);

out->mutable_data<T>(out_dims, place);

for (auto i = 0; i < n_expert; ++i) {
PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::ncclGroupStart());
Copy link
Contributor

Choose a reason for hiding this comment

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

参考PR:#56088 的alltoall_op.cu.cc修改一下
image

j,
comm->comm(),
stream));
}
}
}
PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::ncclGroupEnd());
Copy link
Contributor

Choose a reason for hiding this comment

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

同上。需要修改一下。

@@ -38,6 +38,15 @@ def test_global_gather_nccl_dygraph_eager(self):
eager_mode=True,
)

def test_global_gather_nccl_new_comm(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

还需要修改collective_global_gather.py。可以参考#57161

Copy link
Contributor

@GhostScreaming GhostScreaming left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit eea854e into PaddlePaddle:develop Sep 15, 2023
27 checks passed
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants