mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01: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 |
||
|---|---|---|
| .. | ||
| threadpool | ||
| CMakeLists.txt | ||
| fixed_divisor.h | ||
| proto_wrap.cc | ||
| proto_wrap.h | ||
| string_utils.cc | ||
| string_utils.h | ||