Skip to content

[CINN]support PirCompiler to build broadcast tree #66088

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

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

Hongqing-work
Copy link
Contributor

PR Category

CINN

PR Types

Improvements

Description

Pcard-67164
This PR supports PirCompiler to build broadcast tree.
To learn more about the theoretical explanation of lowering broadcast tree in host wrapper function and the step-by-step arrangement for the Pull Request (PR), please refer to the draft PR65604 for details.

Copy link

paddle-bot bot commented Jul 16, 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.

@@ -97,6 +97,58 @@ std::vector<pir::CINNKernelInfo> PirCompiler::Build(
return ctx_mapper.RecoverKernelInfos();
}

pir::CINNKernelInfo PirCompiler::BuildBroadcastTree(
const std::vector<pir::OpLoweringGroupPtr>& leaf_groups,
pir::OpLoweringGroupPtr origin_group) {
Copy link
Contributor

Choose a reason for hiding this comment

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

return CompilationCache::Instance().GetOrCreate([...](...){
    ...
});

@Hongqing-work Hongqing-work merged commit d16e8e4 into PaddlePaddle:develop Jul 18, 2024
30 of 32 checks passed
lixcli pushed a commit to lixcli/Paddle that referenced this pull request Jul 22, 2024
@Hongqing-work Hongqing-work deleted the broadcast-tree-s4 branch September 5, 2024 08:25
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.

3 participants