SysInfo.H File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int numCpus ()
 Try to find the number of CPUs on the current machine.

Detailed Description

Definition in file SysInfo.H.


Function Documentation

int numCpus (  ) 

Try to find the number of CPUs on the current machine.

Returns:
-1 if the number cannot be determined

Under Linux we read /proc/cpuinfo; under Mac OSX we check the output of 'sysctl -a hw'.

Definition at line 48 of file SysInfo.C.

References rutz::exec_pipe::stream().

Generated on Sun May 8 08:42:52 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3