mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
identify zen cpu for caching
This commit is contained in:
parent
4ef5d20a0e
commit
cb6eedf835
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ elif [[ ${UNAME_S} == Darwin ]]; then
|
|||
CPU_FLAGS_2=$(/usr/sbin/sysctl -n machdep.cpu.leaf7_features)
|
||||
fi
|
||||
fi
|
||||
if [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /clzero/{print "Y"}') == "Y" ]]; then
|
||||
echo "zen"
|
||||
exit 0
|
||||
if [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /avx512f/{print "Y"}') == "Y" ]]; then
|
||||
echo "avx512"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue