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

[cmake治理]cmake optimization of paddle2cinn #59095

Merged

Conversation

risemeup1
Copy link
Contributor

@risemeup1 risemeup1 commented Nov 17, 2023

PR types

Others

PR changes

Others

Description

cmake优化,将paddle/fluid/framework/paddle2cinn编译成一个paddle2cinn.a

  • 收益
  1. 原来的paddle2cinn下依赖多了上层的target,编译出来的.a不仅大而且编译耗时长,现在只依赖基础的必须要的库,如基础第三方库和xxx_proto等target
  2. 删除原来多个target依赖对paddle2cinn目录下的小target的依赖(多余的依赖并没有用到),多个target的编译时间都会减少,大小也会降低
  3. 全量编译耗时由xxx-------->xxxxxx
  4. 增量编译耗时由xxx-------->xxxxxx
    Pcard-67010

Copy link

paddle-bot bot commented Nov 17, 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.

set(IR_PASS_DEPS ${IR_PASS_DEPS} build_cinn_pass)
set(IR_PASS_DEPS ${IR_PASS_DEPS} cinn_zero_tensor_trick_pass)
set(IR_PASS_DEPS ${IR_PASS_DEPS} paddle2cinn)
set(IR_PASS_DEPS ${IR_PASS_DEPS} paddle2cinn)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
set(IR_PASS_DEPS ${IR_PASS_DEPS} paddle2cinn)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@risemeup1 risemeup1 merged commit f2e5bf5 into PaddlePaddle:develop Nov 21, 2023
28 checks passed
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
* cmake optimization

* fix compile bug

* fix compule bug

* cmake optimization of paddle2cinn

* cmake optimization of paddle2cinn

* fix bug
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