From 241320fb5027736fb03e84bae8fbd6be52ffd0a2 Mon Sep 17 00:00:00 2001 From: zhiru Date: Sun, 21 Jul 2019 21:01:53 +0800 Subject: [PATCH] update faiss version to 1.5.3 and add BUILD_FAISS_WITH_MKL as an option Former-commit-id: 2156052d9cf246e72168c4490d0b034ad6a00e47 --- cpp/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cpp/build.sh b/cpp/build.sh index 52ac97d22a..edfe9305be 100755 --- a/cpp/build.sh +++ b/cpp/build.sh @@ -8,8 +8,9 @@ MAKE_CLEAN="OFF" BUILD_COVERAGE="OFF" DB_PATH="/opt/milvus" PROFILING="OFF" +BUILD_FAISS_WITH_MKL="OFF" -while getopts "p:d:t:uhlrcg" arg +while getopts "p:d:t:uhlrcgm" arg do case $arg in t) @@ -40,6 +41,9 @@ do g) PROFILING="ON" ;; + m) + BUILD_FAISS_WITH_MKL="ON" + ;; h) # help echo " @@ -52,9 +56,10 @@ parameter: -r: remove previous build directory(default: OFF) -c: code coverage(default: OFF) -g: profiling(default: OFF) +-m: build faiss with MKL(default: OFF) usage: -./build.sh -t \${BUILD_TYPE} [-u] [-h] [-g] [-r] [-c] +./build.sh -t \${BUILD_TYPE} [-u] [-h] [-g] [-r] [-c] [-m] " exit 0 ;; @@ -83,6 +88,7 @@ if [[ ${MAKE_CLEAN} == "ON" ]]; then -DBUILD_COVERAGE=${BUILD_COVERAGE} \ -DMILVUS_DB_PATH=${DB_PATH} \ -DMILVUS_ENABLE_PROFILING=${PROFILING} \ + -DBUILD_FAISS_WITH_MKL=${BUILD_FAISS_WITH_MKL} \ $@ ../" echo ${CMAKE_CMD}