clang-diagnostic-unused-parameter in bench_result_handler_overhead.cpp (#5481)

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

Reviewed By: limqiying

Differential Revision: D113537265

fbshipit-source-id: a92d436db6385d8476609b3b1c648a870a7a0305
This commit is contained in:
generatedunixname923199350665076
2026-07-28 20:54:31 -07:00
committed by meta-codesync[bot]
parent d6d3dce8d7
commit a9683455b7
+2 -4
View File
@@ -46,8 +46,7 @@ std::pair<double, double> run_search(
IndexData& data,
int d,
int k,
int nprobe,
const char* factory_string) {
int nprobe) {
ParameterSpace().set_index_parameter(data.index.get(), "nprobe", nprobe);
omp_set_num_threads(1);
@@ -184,8 +183,7 @@ int main() {
std::vector<faiss::BenchmarkResult> results;
for (int k : ks) {
for (int nprobe : nprobes) {
auto [mean, std] = faiss::run_search(
data, d, k, nprobe, index_factory.c_str());
auto [mean, std] = faiss::run_search(data, d, k, nprobe);
results.push_back({index_factory, d, k, nprobe, mean, std});
}
}