Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_cppcontrib_sa_decode.cpp #2388

Closed
wants to merge 3 commits into from

Conversation

wx257osn2
Copy link
Contributor

@wx257osn2 wx257osn2 commented Jul 19, 2022

This PR contains below changes:

  • Conform C++11
  • Enable AVX2 on faiss_test
    • Currently faiss_test is compiled without -mavx2 even if -DFAISS_OPT_LEVEL=avx2 , so tests/test_cppcontrib_sa_decode.cpp hasn't checked faiss/cppcontrib/SaDecodeKernels-avx2-inl.h at all . This PR adds -mavx2 to faiss_test if -DFAISS_OPT_LEVEL=avx2 , so now tests/test_cppcontrib_sa_decode.cpp confirms faiss/cppcontrib/SaDecodeKernels-avx2-inl.h if -DFAISS_OPT_LEVEL=avx2 , and does faiss/cppcontrib/SaDecodeKernels-inl.h if not -DFAISS_OPT_LEVEL=avx2 .

@wx257osn2 wx257osn2 changed the title Fix test_contrib_sa_decode.cpp Fix test_cppcontrib_sa_decode.cpp Jul 19, 2022
@wx257osn2 wx257osn2 changed the title Fix test_cppcontrib_sa_decode.cpp WIP: Fix test_cppcontrib_sa_decode.cpp Jul 19, 2022
@wx257osn2 wx257osn2 changed the title WIP: Fix test_cppcontrib_sa_decode.cpp Fix test_cppcontrib_sa_decode.cpp Jul 19, 2022
@mdouze
Copy link
Contributor

mdouze commented Jul 19, 2022

thanks that sounds good.

@mdouze
Copy link
Contributor

mdouze commented Jul 19, 2022

@alexanderguzhva would you mind taking a look?

@facebook-github-bot
Copy link
Contributor

@alexanderguzhva has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@wx257osn2 wx257osn2 deleted the conform-cxx11 branch July 21, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants