identify zen cpu for caching

This commit is contained in:
edoapra 2023-12-08 16:50:10 -08:00
parent 4ef5d20a0e
commit cb6eedf835
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -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