#include "defun-dld.h"
#include "nproc.h"
Go to the source code of this file.
Functions | |
DEFUN_DLD (nproc, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} nproc ()\n\ @deftypefnx {Loadable Function} {} nproc (@var{query})\n\ Return the current number of available processors.\n\ \n\ If called with the optional argument @var{query}, modify how processors\n\ are counted as follows:\n\ @table @code\n\ @item all\n\ total number of processors.\n\ \n\ @item current\n\ processors available to the current process.\n\ \n\ @item overridable\n\ likewise, but overridable through the @w{@env{OMP_NUM_THREADS}} environment\n\ variable.\n\ @end table\n\ @end deftypefn") |
DEFUN_DLD | ( | nproc | , | |
args | , | |||
nargout | ||||
) |
Definition at line 30 of file nproc.cc.
References arg(), error(), print_usage(), and transform().