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

fix cinn_instruction_run_op_test when FLAGS_use_system_allocator=True #47731

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

CtfGo
Copy link
Contributor

@CtfGo CtfGo commented Nov 7, 2022

PR types

Bug fixes

PR changes

OPs

Describe

FLAGS_use_system_allocator打开时,cinn_instruction_op_test会随机挂,经过debug发现原因是单测中同个cinn_instruction_op对象在cpu和gpu中重复使用,前后两次执行时中有些数据被cache,导致cpu的kernel被用在gpu中执行

@paddle-bot
Copy link

paddle-bot bot commented Nov 7, 2022

你的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

@veyron95 veyron95 left a comment

Choose a reason for hiding this comment

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

LGTM

@CtfGo CtfGo merged commit a4a9ce0 into PaddlePaddle:develop Nov 8, 2022
@CtfGo CtfGo deleted the fix_cinn_instruction_run_op_test branch November 8, 2022 02:20
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.

2 participants