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

[PIR]Support build_cinn_pass in PIR+CINN #57779

Merged
merged 7 commits into from
Sep 27, 2023

Conversation

Aurelius84
Copy link
Contributor

@Aurelius84 Aurelius84 commented Sep 26, 2023

PR types

New features

PR changes

Others

Description

What's New?

Pcard-67164

see: #56880

将旧 Program+Graph 体系下的 build_cinn_pass 迁移至 pir::Pass 体系下,添加了相关单测。同时给基础组件新增了必要功能:

  • pir::Block 添加了Take(Op) 私有方法,用于转移 Op 的 ownership 到其他 Block
  • pir::Operation 添加了 MoveTo(Block*, position) 方法,用于将std::vector<Operation*> ops移动到cinn::GroupOp
  • Value 添加了 operator < 的方法,用于std::set 的容器支持,方便进行差集算法操作
  • 新增了BuildCinnPass 继承自pir::Pass 体系

相关comment已在#57829 fix

@paddle-bot
Copy link

paddle-bot bot commented Sep 26, 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.

Copy link
Contributor

@winter-wang winter-wang 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

@risemeup1 risemeup1 left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit 1876660 into PaddlePaddle:develop Sep 27, 2023
27 checks passed
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
* [PIR]Support build_cinn_pass in PIR+CINN

* fix conflict

* fix .gitignore

* polish cmakelists.txt

* fix WITH_CINN

* fix conflict

* fix CmakeLists.txt
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 16, 2023
* [PIR]Support build_cinn_pass in PIR+CINN

* fix conflict

* fix .gitignore

* polish cmakelists.txt

* fix WITH_CINN

* fix conflict

* fix CmakeLists.txt
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* [PIR]Support build_cinn_pass in PIR+CINN

* fix conflict

* fix .gitignore

* polish cmakelists.txt

* fix WITH_CINN

* fix conflict

* fix CmakeLists.txt
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.

4 participants