Navigation

Operators and Keywords

Function List:

C++ API

: nproc ()
: nproc (query)

Return the current number of available processors.

If called with the optional argument query, modify how processors are counted as follows:

all

total number of processors.

current

processors available to the current process.

overridable

same as current, but overridable through the OMP_NUM_THREADS environment variable.

Package: octave