From 4ce83a8db263953dc2ef8547f4f173566f057736 Mon Sep 17 00:00:00 2001 From: edoapra Date: Fri, 14 Mar 2025 18:59:44 -0700 Subject: [PATCH] simd fix for arm64 --- travis/guess_simd.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/travis/guess_simd.sh b/travis/guess_simd.sh index dd4f610c58..e67cf3070c 100755 --- a/travis/guess_simd.sh +++ b/travis/guess_simd.sh @@ -25,8 +25,19 @@ elif [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /sse2/ {print "Y"}') == echo "sse2" exit 0 elif [[ $arch == "arm64" || $arch == "aarch64" ]]; then - echo "arm64" - exit 0 + if [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /sve2/ {print "Y"}') == "Y" ]]; then + echo "sve2" + exit 0 + elif [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /sve/ {print "Y"}') == "Y" ]]; then + echo "sve" + exit 0 + elif [[ $(echo ${CPU_FLAGS} | tr 'A-Z' 'a-z'| awk ' /asimddp/ {print "Y"}') == "Y" ]]; then + echo "asimddp" + exit 0 + else + echo "arm64" + exit 0 + fi else echo "unknown" fi