Skip to content

Commit

Permalink
enhance: [skip e2e] use disk ann when os is ubuntu, rocky or amazon
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
  • Loading branch information
yellow-shine committed Jun 27, 2024
1 parent 1c6e850 commit 253ec9f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/core_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,17 @@ source ${ROOT_DIR}/scripts/setenv.sh

CMAKE_GENERATOR="Unix Makefiles"

# UBUNTU system build diskann index
if [ "$OS_NAME" == "ubuntu20.04" ] ; then
# build with diskann index if OS is ubuntu or rocky or amzn
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
fi
if [ "$OS" = "ubuntu" ] || [ "$OS" = "rocky" ] || [ "$OS" = "amzn" ]; then
BUILD_DISK_ANN=ON
fi



pushd ${BUILD_OUTPUT_DIR}

# Remove make cache since build.sh -l use default variables
Expand Down

0 comments on commit 253ec9f

Please sign in to comment.