mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
It can fail on ARM platform if `/sys` folder is not accessible. In that case, call `std:🧵:hardware_concurrency()`, which is aligned with the thread_pool initialization logic of `c10::TaskThreadPoolBase:defaultNumThreads()` Further addresses issue raised in https://github.com/pytorch/pytorch/issues/113568 Pull Request resolved: https://github.com/pytorch/pytorch/pull/114011 Approved by: https://github.com/kit1980 ghstack dependencies: #113771 |
||
|---|---|---|
| .. | ||
| 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 | ||