mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
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:
committed by
meta-codesync[bot]
parent
d0a1cc0859
commit
15a8e228ad
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user