Skip to content

Commit 3614cc7

Browse files
mengdilinfacebook-github-bot
authored andcommitted
avx512 compilation option (#3798)
Summary: Pull Request resolved: #3798 Alexander left a comment on the previous PR: #3785 (comment). 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
1 parent 4ca6734 commit 3614cc7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

faiss/utils/utils.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ std::string get_compile_options() {
115115
options += "OPTIMIZE ";
116116
#endif
117117

118-
#ifdef __AVX2__
119-
options += "AVX2 ";
120118
#ifdef __AVX512F__
121119
options += "AVX512 ";
122-
#endif
120+
#elif defined(__AVX2__)
121+
options += "AVX2 ";
123122
#elif defined(__ARM_FEATURE_SVE)
124123
options += "SVE NEON ";
125124
#elif defined(__aarch64__)

0 commit comments

Comments
 (0)