Skip to content

【npu】release gil lock when predictor run #72485

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

Merged
merged 3 commits into from
Apr 27, 2025

Conversation

xiaoguoguo626807
Copy link
Contributor

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

pcard-67164
npu 运行过程中会使用多线程,争夺gil 锁,因此执行前需要释放该锁

Copy link

paddle-bot bot commented Apr 25, 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.

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaoguoguo626807 xiaoguoguo626807 merged commit 0aaea8c into PaddlePaddle:develop Apr 27, 2025
39 of 41 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the npu_gil branch April 27, 2025 10:54
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
* fix npu hang

* fix npu hang

* remove std::cout
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