avx512 compilation option (#3798)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3798 Alexander left a comment on the previous PR: https://github.com/facebookresearch/faiss/pull/3785#issuecomment-2305864630. The contract for the function seems to be that it will only append a single compilation option, not a list of options. Fixing it to comply with the contract. Reviewed By: asadoughi, ramilbakhshyiev Differential Revision: D61803839 fbshipit-source-id: 948a3d636f6dd6b5c4f975d236c19923af2bbd18pull/3795/head^2
parent
4ca67340ea
commit
3614cc7d47
|
@ -115,11 +115,10 @@ std::string get_compile_options() {
|
|||
options += "OPTIMIZE ";
|
||||
#endif
|
||||
|
||||
#ifdef __AVX2__
|
||||
options += "AVX2 ";
|
||||
#ifdef __AVX512F__
|
||||
options += "AVX512 ";
|
||||
#endif
|
||||
#elif defined(__AVX2__)
|
||||
options += "AVX2 ";
|
||||
#elif defined(__ARM_FEATURE_SVE)
|
||||
options += "SVE NEON ";
|
||||
#elif defined(__aarch64__)
|
||||
|
|
Loading…
Reference in New Issue