|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Namespaces | |
| namespace | detail |
| namespace | pool_select_thread |
Classes | |
| class | spin_pool |
| class | thread_pool |
Typedefs | |
| using | default_pool = thread_pool |
| The pool type MTL5's kernels run on: thread_pool, or spin_pool under MTL5_POOL_SPIN. | |
Functions | |
| default_pool & | pool () |
| The process-wide pool that MTL5's kernels run on. | |
| bool | configure (unsigned threads) |
| Size the process-wide pool from code, instead of MTL5_NUM_THREADS. | |
|
inline |
Size the process-wide pool from code, instead of MTL5_NUM_THREADS.
Takes effect only before the pool's first use: the first pool() call, or the first MTL5 kernel that runs threaded. threads is clamped to the hardware concurrency, as MTL5_NUM_THREADS is, and overrides it. Returns true if the pool will have that size; false, changing nothing, if the pool already exists or threads is 0. pool().size() is the size actually in use.