Closed tammojan closed 8 years ago
Anyone?
That command returns the number of threads I have in OSX (It actually surprised me that I actually had 8 cores). Is that command indeed working on all Linuxes? Then we can just replace it.
No, it does not work on all cpus. That's why I'm asking you, I was hoping you'd have the Make skills to do an if statement :)
Ah I finally get what you mean by " Not sure how to check for osx"! Ok, that is something I can try to find out.
Should be
sysctl -n hw.ncpu
instead ofcat /proc/cpuinfo | grep processor | wc -l
. Not sure how to check for osx to make it a generic command.