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

support kunlun xpu bf16 all_reduce/concat/split #62364

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

QingshuChen
Copy link
Contributor

@QingshuChen QingshuChen commented Mar 4, 2024

PR types

Others

PR changes

Others

Description

support bf16 concat/split in xpu all reduce.
同时增加多stream的支持。如果开启CDNN/CLUSTER并行工作,一次性创建4个context,每个context一个独立stream,后续kernel可以按需下发到不同的stream中。

Copy link

paddle-bot bot commented Mar 4, 2024

你的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 Mar 4, 2024
Copy link
Contributor

@zhangyk0314 zhangyk0314 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lj970926 lj970926 left a comment

Choose a reason for hiding this comment

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

LGTM

impl_->Init();
XPUContext::XPUContext() : DeviceContext() {
if (std::getenv("XPU_CDNN_CLUSTER_PARALLEL") != nullptr) {
for (int i = 0; i < 4; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个4有什么特殊含义么?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

两个cluster stream, 两个cdnn stream。 后期可以改

@QingshuChen QingshuChen merged commit 8f50df0 into PaddlePaddle:develop Mar 5, 2024
30 checks passed
@houj04 houj04 added the XPU label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers XPU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants