Detect number of cpus

Fredrik Lingvall fl at ifi.uio.no
Wed Jan 23 12:26:11 CST 2008


On a Linux box one can do, for example,

[dummy,tmp_str]= system('cat /proc/cpuinfo | grep model | grep name');
n_cpus = size(strfind(tmp_str,'model'),2);

to detect the number of CPUs/Cores on the system. Is is possible to do
something similar on Windows?

/Fredrik



More information about the Help-octave mailing list