Fix build pr 4761 (#4792)

Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4792

Reviewed By: junjieqi

Differential Revision: D92294287

Pulled By: trang-nm-nguyen

fbshipit-source-id: 1fa39a5319527f00214258c4c97bd718025d86ad
This commit is contained in:
ASHIK SHARON M
2026-02-05 10:52:06 -08:00
committed by meta-codesync[bot]
parent d0a1cc0859
commit 15a8e228ad
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ add_library(faiss_perf_tests_utils
)
# `#include <faiss/perf_tests/utils.h>` or any other headers
target_include_directories(faiss_perf_tests_utils PRIVATE
${PROJECT_SOURCE_DIR}/../..)
${PROJECT_SOURCE_DIR}/..)
include(../cmake/link_to_faiss_lib.cmake)
@@ -45,6 +45,6 @@ foreach(bench ${FAISS_PERF_TEST_SRC})
target_link_libraries(${bench_exec} PRIVATE faiss_perf_tests_utils OpenMP::OpenMP_CXX benchmark::benchmark gflags)
# `#include <faiss/perf_tests/utils.h>` or any other headers
target_include_directories(${bench_exec} PRIVATE
${PROJECT_SOURCE_DIR}/../..)
${PROJECT_SOURCE_DIR}/..)
endforeach()
@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/perf_tests/utils.h>
#include <gflags/gflags.h>
#include <cstdio>
#include <map>
#include "utils.h"
#include <benchmark/benchmark.h>
#include <faiss/impl/ScalarQuantizer.h>
+1 -1
View File
@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/perf_tests/utils.h>
#include <gflags/gflags.h>
#include <omp.h>
#include <cstdio>
#include <map>
#include "utils.h"
#include <benchmark/benchmark.h>
#include <faiss/impl/ScalarQuantizer.h>
@@ -12,8 +12,8 @@
#include <benchmark/benchmark.h>
#include <faiss/impl/ScalarQuantizer.h>
#include <faiss/perf_tests/utils.h>
#include <faiss/utils/random.h>
#include "utils.h"
using namespace faiss;
DEFINE_uint32(d, 128, "dimension");
+1 -1
View File
@@ -12,8 +12,8 @@
#include <benchmark/benchmark.h>
#include <faiss/impl/ScalarQuantizer.h>
#include <faiss/perf_tests/utils.h>
#include <faiss/utils/random.h>
#include "utils.h"
using namespace faiss;
DEFINE_uint32(d, 128, "dimension");
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/perf_tests/utils.h>
#include "utils.h"
namespace faiss::perf_tests {
std::map<std::string, faiss::ScalarQuantizer::QuantizerType> sq_types() {
static std::map<std::string, faiss::ScalarQuantizer::QuantizerType>