<< license core namelengthmax >>

maxNumCompThreads


Set/Get maximum number of computional threads.


Syntax


T = maxNumCompThreads()
PREVIOUS_T = maxNumCompThreads(T)
PREVIOUS_T = maxNumCompThreads('automatic')

Input argument


T

an integer value: number of threads used by Nelson for computations.

Output argument


T

an integer value: number of threads used by Nelson for computations.

PREVIOUS_T

an integer value: previous number of threads used by Nelson for computations.

Description


maxNumCompThreads returns the number of threads used by Nelson for computations.

maxNumCompThreads(T) sets the maximum number of computational threads. This modification is only available for current session.

By default, maxNumCompThreads uses OMP_NUM_THREADS environment variable or numbers of detected cores.

Example


maxNumCompThreads

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< license core namelengthmax >>