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: 948a3d636f6dd6b5c4f975d236c19923af2bbd18
pull/3795/head^2
Mengdi Lin 2024-08-26 13:40:00 -07:00 committed by Facebook GitHub Bot
parent 4ca67340ea
commit 3614cc7d47
1 changed files with 2 additions and 3 deletions

View File

@ -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__)