mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 06:25:21 -04:00
fix no. of physical cpus on mac [ci skip]
This commit is contained in:
parent
bbb64cbde4
commit
1089abf498
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue