mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
Threads inside the thread pools are not named, so they inherit the main process name or the name of the first thread. In our case if we set `pt_main_thread` as the thread name when a thread does `import torch`, this name will be inherited by all the threads in the created pools. This PR names the threads in the pools I was able to find. There are other pools created, like OpenMP ones and we need to follow-up on those. Pull Request resolved: https://github.com/pytorch/pytorch/pull/130270 Approved by: https://github.com/d4l3k, https://github.com/albanD |
||
|---|---|---|
| .. | ||
| pthreadpool-cpp.cc | ||
| pthreadpool-cpp.h | ||
| pthreadpool.cc | ||
| pthreadpool.h | ||
| pthreadpool_impl.cc | ||
| thread_pool_guard.cpp | ||
| thread_pool_guard.h | ||
| ThreadPool.cc | ||
| ThreadPool.h | ||
| ThreadPoolCommon.h | ||
| WorkersPool.h | ||