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