Skip to content

Commit

Permalink
fix cpu bench-ann building
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Oct 2, 2024
1 parent bbb94f5 commit c40805b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ if hasArg bench-ann || (( ${NUMARGS} == 0 )); then
CMAKE_TARGET="${CMAKE_TARGET};${ANN_BENCH_TARGETS}"
if hasArg --cpu-only; then
BUILD_CPU_ONLY=ON
BUILD_SHARED_LIBS=OFF
NVTX=OFF
fi
fi
Expand Down Expand Up @@ -338,7 +339,7 @@ fi
# Configure for building all C++ targets
if (( ${NUMARGS} == 0 )) || hasArg libcuvs || hasArg docs || hasArg tests || hasArg bench-prims || hasArg bench-ann; then
COMPILE_LIBRARY=ON
if hasArg --no-shared-libs; then
if (( ${BUILD_SHARED_LIBS} == "OFF" )); then
CMAKE_TARGET="${CMAKE_TARGET};"
else
CMAKE_TARGET="${CMAKE_TARGET};cuvs"
Expand Down

0 comments on commit c40805b

Please sign in to comment.