mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This reverts commit 96876d9e7ef6baf9d11541454b5f4d22b092de77.
This commit is contained in:
@ -19,12 +19,12 @@ class WorkersPool;
|
||||
|
||||
constexpr size_t kCacheLineSize = 64;
|
||||
|
||||
// A threadpool with the given number of threads.
|
||||
// A work-stealing threadpool with the given number of threads.
|
||||
// NOTE: the kCacheLineSize alignment is present only for cache
|
||||
// performance, and is not strictly enforced (for example, when
|
||||
// the object is created on the heap). Thus, in order to avoid
|
||||
// misaligned intrinsics, no SSE instructions shall be involved in
|
||||
// the ThreadPool implementation.
|
||||
// the ThreadPool implemetation.
|
||||
class alignas(kCacheLineSize) ThreadPool {
|
||||
public:
|
||||
static std::unique_ptr<ThreadPool> defaultThreadPool();
|
||||
|
Reference in New Issue
Block a user