You are not logged in.
Does anyone know if there is a way to detect how many processors a user has and output the number to make as a variable? Would it hurt to make -j5 on a processor that can't do more than -j2? I'm curious to see if anyone has had this thought.
Offline
probably a very sucky way to do it but this should work
grep MHz /proc/cpuinfo|wc -l
Offline
well, this whould detect 2 cpus at my pentium-m thinkpad. the reason is:
$ grep MHz /proc/cpuinfo
model name : Intel(R) Pentium(R) M processor 1500MHz
cpu MHz : 600.000
what does the job for me is:
grep "^processor" /proc/cpuinfo | wc -l
[pidgin-knotify] Native KDE notifications for pidgin - [series60-remote] Manage your Symbian S60 phone
Offline