qualpal 3.3.0
|
Centralized management of thread settings for parallel computations. More...
#include <threads.h>
Static Public Member Functions | |
static void | set (const std::size_t n) |
Set the number of threads to use for parallel computations. | |
static std::size_t | get () |
Get the current number of threads used for parallel computations. | |
Centralized management of thread settings for parallel computations.
The Threads class provides a unified interface to control the number of threads used for parallel computations throughout qualpal. It supports both OpenMP and non-OpenMP builds:
By default, the thread count is set to half the number of available hardware threads (typically the number of physical CPU cores), but can be changed at runtime.
|
inlinestatic |
|
inlinestatic |