-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Issue While building faiss. #2009
Labels
Comments
Could you try |
facebook-github-bot
pushed a commit
that referenced
this issue
Mar 23, 2023
Summary: related: #1916, #1979, #2009, #2013, #2195, #2210 After my PR #1815 had been merged `-DCMAKE_BUILD_TYPE=Debug` has been invalid on aarch64, and many people have been hit the problem. (sorry to inconvenience...) This PR fixes this. ### Details: Using the function pointers of intrinsics on run-time context causes the link errors. `-DCMAKE_BUILD_TYPE=Release` has been available because compiler optimizer can propagate and collapse the function pointers as constant. However, when the pointers doesn't collapsed the link errors occurred, so `-DCMAKE_BUILD_TYPE=Debug` has been unavailable. To prevent the link errors, I've replaced the function pointers of intrinsics on run-time context to on compile-time context explicitly. Pull Request resolved: #2768 Reviewed By: mdouze Differential Revision: D44296147 Pulled By: alexanderguzhva fbshipit-source-id: 81fa013c5e05a486b6b82cb85d76eeefdefca891
mdouze
added a commit
that referenced
this issue
Mar 23, 2023
* fix windows test (#2775) Summary: Pull Request resolved: #2775 Reviewed By: algoriddle Differential Revision: D44210010 fbshipit-source-id: b9b620a4b0a874e09ee2f6082ff0f9463716fdf4 * faiss/utils/simdlib_avx2.h: avoid C++20 ambiguous overloaded operator (#2772) Summary: Pull Request resolved: #2772 Resolves errors from overloaded ambiguous operators: ``` faiss/utils/partitioning.cpp:283:34: error: ISO C++20 considers use of overloaded operator '==' (with operand types 'faiss::simd16uint16' and 'faiss::simd16uint16') to be ambiguous despite there being a unique best viable function [-Werror,-Wambiguous-reversed-operator] ``` Reviewed By: alexanderguzhva, meyering Differential Revision: D44186458 fbshipit-source-id: 0257fa0aaa4fe74c056bef751591f5f7e5357c9d * Fix Debug Build on aarch64 (#2768) Summary: related: #1916, #1979, #2009, #2013, #2195, #2210 After my PR #1815 had been merged `-DCMAKE_BUILD_TYPE=Debug` has been invalid on aarch64, and many people have been hit the problem. (sorry to inconvenience...) This PR fixes this. ### Details: Using the function pointers of intrinsics on run-time context causes the link errors. `-DCMAKE_BUILD_TYPE=Release` has been available because compiler optimizer can propagate and collapse the function pointers as constant. However, when the pointers doesn't collapsed the link errors occurred, so `-DCMAKE_BUILD_TYPE=Debug` has been unavailable. To prevent the link errors, I've replaced the function pointers of intrinsics on run-time context to on compile-time context explicitly. Pull Request resolved: #2768 Reviewed By: mdouze Differential Revision: D44296147 Pulled By: alexanderguzhva fbshipit-source-id: 81fa013c5e05a486b6b82cb85d76eeefdefca891 --------- Co-authored-by: Matthijs Douze <[email protected]> Co-authored-by: Jeff Palm <[email protected]> Co-authored-by: Y.Imaizumi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: Ubuntu 18.04
Installed from: compiled by Myself
Faiss compilation options: sudo cmake -B build . -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
Running on:
Interface:
Reproduction instructions
1)Step One:- sudo cmake -B build . -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
2)Step Two:- make -C build -j4 faiss
3)Step three:- make -C build install
The text was updated successfully, but these errors were encountered: