From fef6cd6e71d43b97cd52f731350d1dbf5604ba41 Mon Sep 17 00:00:00 2001 From: cqy123456 Date: Mon, 13 Mar 2023 06:14:36 -0400 Subject: [PATCH] Fix sort distance crash when distance is nan / inf Signed-off-by: cqy123456 --- thirdparty/DiskANN/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/DiskANN/CMakeLists.txt b/thirdparty/DiskANN/CMakeLists.txt index 7425ed534..6fc5e55bd 100644 --- a/thirdparty/DiskANN/CMakeLists.txt +++ b/thirdparty/DiskANN/CMakeLists.txt @@ -217,7 +217,7 @@ else() set(ENV{TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD} 500000000000) # set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -DDEBUG -O0 -fsanitize=address -fsanitize=leak -fsanitize=undefined") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -DDEBUG -Wall -Wextra") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -DELPP_DISABLE_DEBUG_LOGS -DNDEBUG -ftree-vectorize") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -fno-finite-math-only -DELPP_DISABLE_DEBUG_LOGS -DNDEBUG -ftree-vectorize") add_compile_options(-Wall -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fopenmp -fopenmp-simd -funroll-loops -Wfatal-errors) endif()