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] Refine pir exe log && open some while test case for pir #60138

Merged
merged 5 commits into from
Dec 20, 2023

Conversation

zhangbo9674
Copy link
Contributor

@zhangbo9674 zhangbo9674 commented Dec 19, 2023

PR types

New features

PR changes

Others

Description

Refine pir exe log && open some while test case for pir
Pcard-67164

Copy link

paddle-bot bot commented Dec 19, 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.

@zhangbo9674 zhangbo9674 changed the title [PIR] Refine pir exe log [PIR] Refine pir exe log && open some while test case for pir Dec 20, 2023
Copy link
Contributor

@chen2016013 chen2016013 left a comment

Choose a reason for hiding this comment

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

LGTM

ss << "end\n";
VLOG(6) << ss.str();
if (VLOG_IS_ON(2)) {
std::cout << "======================== pir interpreter trace order "
Copy link
Contributor

Choose a reason for hiding this comment

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

我记得好像有个规则是不允许使用std::cout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的,当日志的字符串过长,使用 vlog 会出现截断的情况,这里通过 VLOG_IS_ON 来控制 cout 仅会在日志打印中出现

Copy link
Contributor

@From00 From00 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangbo9674 zhangbo9674 merged commit 227c4e1 into PaddlePaddle:develop Dec 20, 2023
29 checks passed
HermitSun pushed a commit to HermitSun/Paddle that referenced this pull request Dec 21, 2023
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.

5 participants