<< license | Core | namelengthmax >> |
T = maxNumCompThreads() |
PREVIOUS_T = maxNumCompThreads(T) |
PREVIOUS_T = maxNumCompThreads('automatic') |
an integer value: number of threads used by Nelson for computations.
an integer value: number of threads used by Nelson for computations.
an integer value: previous number of threads used by Nelson for computations.
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 physical cores on Windows and logical cores on others platforms.
Limitation: On Windows 32 bits, due to MKL and OpenMP, maxNumCompThreads returns 4 max even if there is more core.
maxNumCompThreads
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET