From 9eae64df47cc7e286579788b533059cf3f87790f Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 28 Dec 2023 20:36:19 +0100 Subject: [PATCH 1/4] Update install.sh --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 10f8211..3f1d2ab 100755 --- a/install.sh +++ b/install.sh @@ -40,10 +40,12 @@ case `uname` in export DARWIN=0 GCC_VERSION=`gcc -dumpversion` COMPILER_NAME="gcc $GCC_VERSION" - if [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then + if [ "${GCC_VERSION%%.*}" -ge 5]; then export USE_AVX=yes - fi - if [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then + export USE_AVX2=yes + elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then + export USE_AVX=yes + elif [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then export USE_AVX2=yes fi ;; From 335c40430bacaebe9395a359405e663179e1ff4d Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 28 Dec 2023 20:54:35 +0100 Subject: [PATCH 2/4] Update install.sh --- install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 3f1d2ab..0701028 100755 --- a/install.sh +++ b/install.sh @@ -40,13 +40,17 @@ case `uname` in export DARWIN=0 GCC_VERSION=`gcc -dumpversion` COMPILER_NAME="gcc $GCC_VERSION" - if [ "${GCC_VERSION%%.*}" -ge 5]; then + echo "GCC_VERSION: $GCC_VERSION, main version: ${GCC_VERSION%%.*}" + if [ "${GCC_VERSION%%.*}" -ge 5 ]; then + echo " version -ge 5" export USE_AVX=yes export USE_AVX2=yes - elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then - export USE_AVX=yes elif [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then + echo " version > 4.7.0" export USE_AVX2=yes + elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then + echo " version > 4.6.0" + export USE_AVX=yes fi ;; esac From 2a0ad4e2ef658877506edcaf1e5eeb5e44d80ccd Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 28 Dec 2023 20:55:18 +0100 Subject: [PATCH 3/4] Update install.sh --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 0701028..28562cc 100755 --- a/install.sh +++ b/install.sh @@ -47,6 +47,7 @@ case `uname` in export USE_AVX2=yes elif [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then echo " version > 4.7.0" + export USE_AVX=yes export USE_AVX2=yes elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then echo " version > 4.6.0" From 5f0b3ce2c61fd1f420d4469b8b8efb20e821868e Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 28 Dec 2023 21:08:03 +0100 Subject: [PATCH 4/4] Update install.sh --- install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install.sh b/install.sh index 28562cc..52b6044 100755 --- a/install.sh +++ b/install.sh @@ -40,17 +40,13 @@ case `uname` in export DARWIN=0 GCC_VERSION=`gcc -dumpversion` COMPILER_NAME="gcc $GCC_VERSION" - echo "GCC_VERSION: $GCC_VERSION, main version: ${GCC_VERSION%%.*}" if [ "${GCC_VERSION%%.*}" -ge 5 ]; then - echo " version -ge 5" export USE_AVX=yes export USE_AVX2=yes elif [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then - echo " version > 4.7.0" export USE_AVX=yes export USE_AVX2=yes elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then - echo " version > 4.6.0" export USE_AVX=yes fi ;;