Whoopsie, now with better CPU detection and fallback

This commit is contained in:
Tom Reynolds
2013-05-15 05:30:51 +00:00
parent febbf5012c
commit 4bc007f239
5 changed files with 10 additions and 5 deletions

View File

@@ -119,7 +119,8 @@ CXX=/usr/bin/g++
OSTYPE=`uname -s`
if [ "$OSTYPE" = "Linux" ]; then
NCPU=`nproc`
NCPU=`lscpu -p | grep -cv '^#'`
if [ "$NUMCORES" = '' ]; then NUMCORES=1; fi
elif [ "$OSTYPE" = "Darwin" ]; then
NCPU=`sysctl -n hw.ncpu`
elif [ "$OSTYPE" = "SunOS" ]; then