From 1089abf4987277a6794c0cf0c6310fcf4abc5e7f Mon Sep 17 00:00:00 2001 From: edoapra Date: Fri, 18 Mar 2022 15:54:41 -0700 Subject: [PATCH] fix no. of physical cpus on mac [ci skip] --- contrib/getmem.nwchem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/getmem.nwchem b/contrib/getmem.nwchem index ecd1244c1c..bd6d9e4685 100755 --- a/contrib/getmem.nwchem +++ b/contrib/getmem.nwchem @@ -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