10 Commits
Author SHA1 Message Date
generatedunixname923199350665076 d6d3dce8d7 clang-diagnostic-unused-parameter in bench_cppcontrib_sa_decode.cpp (#5479)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5479

Reviewed By: limqiying

Differential Revision: D113537359

fbshipit-source-id: 458da98d641ecb38d4b85bfa8dd3bb7ecdef35fb
2026-07-28 20:52:49 -07:00
Carl Shapiro db0e798d5a Use omp_get_max_threads() for OpenMP thread count (#4991)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4991

This change replaces std::thread::hardware_concurrency() with
omp_get_max_threads() when choosing the thread count for this benchmark.

This code is OpenMP-based, and omp_get_max_threads() more directly reflects the
parallelism OpenMP will actually use. In particular, it respects the OpenMP
runtime configuration, including settings such as OMP_NUM_THREADS, instead of
querying the system for hardware concurrency.

Reviewed By: junjieqi

Differential Revision: D87909792

fbshipit-source-id: 2e6753761ffd6be2644175d1c37f6ae971880add
2026-03-27 08:07:19 -07:00
Subhadeep Karan 3d4d59fc3b Fix typos in demos, benchs, and other directories (#4709)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4709

Reviewed By: limqiying

Differential Revision: D86571400

fbshipit-source-id: ac60662cf7a1939b900b89830273ee3d40f87e9c
2025-12-05 15:44:35 -08:00
generatedunixname89002005287564 9595cbb1ca Fix CQS signal readability-braces-around-statements in fbcode/faiss/benchs (#4449)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4449

Reviewed By: dtolnay

Differential Revision: D78795472

fbshipit-source-id: 227e3beb472f06f5c2897f7f4a7b6713ab06a4cb
2025-07-23 16:47:30 -07:00
Nicholas Ormrod eb5e7341a6 facebook-unused-include-check in fbcode/faiss (#4029)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4029

Remove headers flagged by facebook-unused-include-check over fbcode.faiss.

+ format and autodeps

This is a codemod. It was automatically generated and will be landed once it is approved and tests are passing in sandcastle.
You have been added as a reviewer by Sentinel or Butterfly.

Autodiff project: uif
Autodiff partition: fbcode.faiss
Autodiff bookmark: ad.uif.fbcode.faiss

Reviewed By: dtolnay

Differential Revision: D65957849

fbshipit-source-id: f6199250db595defd56f5e7b2828f838702e9a16
2024-11-15 13:53:46 -08:00
Michael Norris eff0898a13 Enable linting: lint config changes plus arc lint command (#3966)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3966

This actually enables the linting.

Manual changes:
- tools/arcanist/lint/fbsource-licenselint-config.toml
- tools/arcanist/lint/fbsource-lint-engine.toml

Automated changes:
`arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files faiss'`

Reviewed By: asadoughi

Differential Revision: D64484165

fbshipit-source-id: 4f2f6e953c94ef6ebfea8a5ae035ccfbea65ed04
2024-10-22 09:46:48 -07:00
Mengdi Lin 745bca88e3 stabilize formatting for bench_cppcontrib_sa_decode.cpp (#3443)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3443

Stabilize this file for clang-formatting versions 18.1.3 (VSCode) and 18.1.5 (our Github CI)

Reviewed By: junjieqi

Differential Revision: D57393650

fbshipit-source-id: 15170436bbd03194dbeaac1ef1130e20adc8c23e
2024-05-15 13:39:18 -07:00
Andres Suarez ab2b7f5093 Apply clang-format 18
Summary: Previously this code conformed from clang-format 12.

Reviewed By: igorsugak

Differential Revision: D56065247

fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
2024-04-14 11:28:32 -07:00
Alexandr Guzhva 868e17f294 OSS legal requirements (#2698)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2698

Add headers about copyright.

Reviewed By: algoriddle

Differential Revision: D43085637

fbshipit-source-id: 5a57876b7047097ffe01cd79322674625d9bca34
2023-02-07 14:32:56 -08:00
Alexandr Guzhva e11a3cf292 Benchmark for SADecodeKernels (#2554)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2554

Reviewed By: mdouze

Differential Revision: D40484008

fbshipit-source-id: c5f9b3c1a42a4ff4ff565d7c3f96af58c967b599
2022-10-31 14:55:08 -07:00