update faiss version to 1.5.3 and add BUILD_FAISS_WITH_MKL as an option

Former-commit-id: 2156052d9cf246e72168c4490d0b034ad6a00e47
This commit is contained in:
zhiru 2019-07-21 21:01:53 +08:00
parent 42b448d9ab
commit 241320fb50

View File

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