mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
fix hw detection on mac
This commit is contained in:
parent
8975c57a2c
commit
f77a0e4ee8
1 changed files with 5 additions and 1 deletions
|
|
@ -35,7 +35,11 @@ if [[ ${UNAME_S} == Linux ]]; then
|
|||
elif [[ ${UNAME_S} == Darwin ]]; then
|
||||
CPU_FLAGS=$(/usr/sbin/sysctl -n machdep.cpu.features)
|
||||
if [[ "$arch" == "x86_64" ]]; then
|
||||
CPU_FLAGS_2=$(/usr/sbin/sysctl -n machdep.cpu.leaf7_features)
|
||||
# CPU_FLAGS_2=$(/usr/sbin/sysctl -n machdep.cpu.leaf7_features)
|
||||
if [[ $(/usr/sbin/sysctl -n hw.optional.avx2_0) == 1 ]]; then
|
||||
echo got AVX2
|
||||
CPU_FLAGS_2="AVX2"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
GOTSSE2=$(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /sse2/ {print "Y"}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue