We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 567b233 commit 83d9f04Copy full SHA for 83d9f04
scripts/build.sh
@@ -112,7 +112,13 @@ fi
112
# https://github.com/opensearch-project/k-NN/issues/1138
113
# https://github.com/opensearch-project/opensearch-build/issues/4386
114
GCC_VERSION=`gcc --version | head -n 1 | cut -d ' ' -f3`
115
-GCC_REQUIRED_VERSION=12.4
+if [ "$ARCHITECTURE" = "x64" ]; then
116
+ # https://github.com/opensearch-project/opensearch-build/issues/5226
117
+ # We need gcc version >=12.4 to build Faiss Sapphire library(avx512_spr)
118
+ GCC_REQUIRED_VERSION=12.4
119
+else
120
+ GCC_REQUIRED_VERSION=9.0.0
121
+fi
122
COMPARE_VERSION=`echo $GCC_REQUIRED_VERSION $GCC_VERSION | tr ' ' '\n' | sort -V | uniq | head -n 1`
123
if [ "$COMPARE_VERSION" != "$GCC_REQUIRED_VERSION" ]; then
124
echo "gcc version on this env is older than $GCC_REQUIRED_VERSION, exit 1"
0 commit comments