TBB¶
- class TBB(*args, **kwargs)¶
Threading parameters.
The number of threads is the value associated to the TBB-ThreadsNumber key in
ResourceMap
, which is initialized to the available cpus, and can be overriden by the OPENTURNS_NUM_THREADS environment variable.Methods
Disable
()Disable threading.
Enable
()Enable threading.
Accessor to the maximum number of TBB threads.
Ask whether threading support is available.
SetThreadsNumber
(threadsNumber)Accessor to the maximum number of TBB threads.
GetNumberOfThreads
SetNumberOfThreads
- __init__(*args, **kwargs)¶
- static Disable()¶
Disable threading.
- static Enable()¶
Enable threading.
- static GetThreadsNumber()¶
Accessor to the maximum number of TBB threads.
- Returns
- n_threadsint
Maximum number of TBB threads.
- static IsAvailable()¶
Ask whether threading support is available.
- Returns
- availablebool
Whether threading support is available.
- static SetThreadsNumber(threadsNumber)¶
Accessor to the maximum number of TBB threads.
- Parameters
- n_threadsint
Maximum number of TBB threads.