mirror of
https://github.com/glest/glest-source.git
synced 2025-09-09 15:30:41 +02:00
Use 'nproc' command instead of /proc/cpuinfo (doesn't work on armv5tel) to determine # of cores (lscpu can be another option)
This commit is contained in:
@@ -119,8 +119,7 @@ CXX=/usr/bin/g++
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
if [ "$OSTYPE" = "Linux" ]; then
|
||||
NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
|
||||
let NCPU=$NCPU+1
|
||||
NCPU=`nproc`
|
||||
elif [ "$OSTYPE" = "Darwin" ]; then
|
||||
NCPU=`sysctl -n hw.ncpu`
|
||||
elif [ "$OSTYPE" = "SunOS" ]; then
|
||||
|
Reference in New Issue
Block a user