MegEngine / MegEngine/InferLLM
在线程数>1时,会占满cpu核心
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 752
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
thread_pool.cpp38行的yield并不能成功出让线程,导致线程死循环
Contributor guide
No contributing guide indexed for this repository
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 in thread_pool.cpp at line 38 and inspect how yield is used when the thread count is greater than one. Reproduce the busy-loop behavior and verify that the thread no longer consumes an entire CPU core while waiting; add or run a focused test if the repository provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100