fix no. of physical cpus on mac [ci skip]

This commit is contained in:
edoapra 2022-03-18 15:54:41 -07:00
parent bbb64cbde4
commit 1089abf498
No known key found for this signature in database
GPG key ID: 472C4EBB4F3AEDFA

View file

@ -46,7 +46,7 @@ if [ $NWCHEM_TARGET == LINUX ] || [ $NWCHEM_TARGET == LINUX64 ]; then
nproc=`nproc --all`
memtot=`egrep -i MemT /proc/meminfo | sed -e "s/kB//g"|sed -e "s/MemTotal://" `
elif [ $NWCHEM_TARGET == MACX64 ]; then
nproc=`sysctl -n hw.ncpu`
nproc=`sysctl -n hw.physicalcpu`
memtot=`sysctl -n hw.memsize`
memtot=$(( memtot / 1024 ))
elif [ $NWCHEM_TARGET == SOLARIS ]; then