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
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