Skip to content

[CINN] Compile time status count #72206

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

eggman-1024
Copy link
Contributor

@eggman-1024 eggman-1024 commented Apr 11, 2025

PR Category

CINN

PR Types

Others

Description

  1. paddle/cinn/ir/ir.cc中726行替换为node->set_type(tensor->type())
  2. 经测试,完成上述替换后,整体编译耗时减少;主要在transpose操作减少耗时

Copy link

paddle-bot bot commented Apr 11, 2025

你的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 Apr 11, 2025
@eggman-1024 eggman-1024 force-pushed the time_count branch 2 times, most recently from b15b1df to 3d85d41 Compare April 12, 2025 05:56
@@ -264,8 +264,10 @@ void Compiler::EndCompile() {
auto end = std::chrono::high_resolution_clock::now();
auto duration =
std::chrono::duration_cast<std::chrono::microseconds>(end - start);
LOG(INFO) << "Time of nvrtc compile: ***** [ " << duration.count()
<< " ] ***** microseconds.";
if (FLAGS_cinn_debug) {
Copy link
Member

Choose a reason for hiding this comment

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

现在别加呀 😂 现在还没有这个 flag,我是说下周一 #72181 合入后再加

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
Member

Choose a reason for hiding this comment

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

PR 已合入,可以 merge 下最新 develop,另外记得相关 flag 使用前需要 declare 下

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾 for LOG(INFO) usage

Comment on lines +726 to +727
// node->set_type(
// tensor->type().ElementOf().with_lanes(node->index().type().lanes()));
Copy link
Contributor

Choose a reason for hiding this comment

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

下一个PR把注释删除吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants