PaddlePaddle / PaddlePaddle/Paddle
Paddle多线程场景下stream、event等资源是什么时候释放的?
Open
Nobody has claimed this yet.
status/new-issue
type/question
- Dominant language
- C++
- Stars
- 24.1k
- Forks
- 6k
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 60
Description
请提出你的问题 Please ask your question
我用paddle2.6跑模型时遇到过最后一个epoch评估阶段访问了nullptr的raw_stream和raw_event(不是封装的那个stream和event)而导致段错误的bug,怀疑是多线程中主线程已经销毁了这些资源,但子线程中还在调用。所以想请教下paddle多线程场景资源释放的流程是什么样的,希望飞桨的老师能帮忙解答,谢谢!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Paddle 2.6 code paths that create and release raw_stream and raw_event during multithreaded model evaluation. The issue names no files or tests; completion would require reproducing the final-epoch nullptr access and documenting or correcting the resource-lifetime behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100