SIMDConfig::has_dynamic_dispatch() (#5460)

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

Reviewed By: pankajsingh88, mnorris11

Differential Revision: D110967632

fbshipit-source-id: a385274e27a36b45ee46638d502fd2086d863016
This commit is contained in:
Tom Jackson
2026-07-24 12:36:29 -07:00
committed by meta-codesync[bot]
parent af45a3b2a7
commit 3e313e4c49
+8
View File
@@ -163,6 +163,14 @@ struct FAISS_API SIMDConfig {
static SIMDLevel auto_detect_simd_level();
static constexpr bool has_dynamic_dispatch() {
#ifdef FAISS_ENABLE_DD
return true;
#else
return false;
#endif
}
SIMDConfig(const char** faiss_simd_level_env = nullptr);
/// Set the SIMD level. Throws FaissException if level is not supported.