Functions

nproc.cc File Reference

#include "defun-dld.h"
#include "nproc.h"
Include dependency graph for nproc.cc:

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")

Function Documentation

DEFUN_DLD ( nproc  ,
args  ,
nargout   
)

Definition at line 30 of file nproc.cc.

References arg(), error(), print_usage(), and transform().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines