-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个4有什么特殊含义么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
两个cluster stream, 两个cdnn stream。 后期可以改
PR types
Others
PR changes
Others
Description
support bf16 concat/split in xpu all reduce.
同时增加多stream的支持。如果开启CDNN/CLUSTER并行工作,一次性创建4个context,每个context一个独立stream,后续kernel可以按需下发到不同的stream中。