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.

GetThreadsNumber()

Accessor to the maximum number of TBB threads.

SetThreadsNumber(threadsNumber)

Accessor to the maximum number of TBB threads.

__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 SetThreadsNumber(threadsNumber)

Accessor to the maximum number of TBB threads.

Parameters:
n_threadsint

Maximum number of TBB threads.