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

【静态图性能优化】添加GC复用 #55332

Closed
wants to merge 16 commits into from

Conversation

AndSonder
Copy link
Contributor

PR types

Performance optimization

PR changes

Others

Description

静态图执行器预分析性能优化

在Paddle中,GC主要的作用是回收资源。Paddle会根据设备类型和flag选择不同的GC策略。对于一样的子图,选择的GC策略也是一样,因此GC策略也是可以共享的资源。

GC策略gc_是由CreateInterpreterCoreGarbageCollector(place_, vec_instruction_)获得的。对于一样的子图可以通过智能指针完成gc_的共享。

相关Issue:

@paddle-bot
Copy link

paddle-bot bot commented Jul 11, 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.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jul 11, 2023
@AndSonder
Copy link
Contributor Author

AndSonder commented Jul 23, 2023

本PR迁移到 #55626 中实现

@AndSonder AndSonder closed this Jul 23, 2023
@AndSonder AndSonder deleted the reuse branch April 23, 2024 13:57
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.

1 participant