Macros

Structs

  • | Deleter object for unique_ptr for an | aligned object |
  • | A BlockingCounter lets one thread to | wait for N events to occur. | | This is how the master thread waits for | all the worker threads to have finished | working. |
  • | A 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. | ––––– | @note | | alignas is disabled because some compilers | do not deal with TORCH_API and alignas | annotations at the same time. |
  • A worker thread.

  • | A RAII, thread local (!) guard that enables | or disables grad mode upon construction, | and sets it back to the original value | upon destruction. |

Enums

Constants

Traits

  • A workload for a worker.

Functions

Type Definitions