-
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
Add a new architecture mode: 'avx512-sr'. #4025
base: main
Are you sure you want to change the base?
Changes from 3 commits
87002d4
4899800
67e6291
7a46de7
7c48043
1770b8c
64daa63
5043d08
0bcbbd9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,18 @@ | |
set -e | ||
|
||
|
||
# Build libfaiss.so/libfaiss_avx2.so/libfaiss_avx512.so | ||
# Build libfaiss.so/libfaiss_avx2.so/libfaiss_avx512.so/libfaiss_avx512_sr.so | ||
cmake -B _build \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DBUILD_TESTING=OFF \ | ||
-DFAISS_OPT_LEVEL=avx512 \ | ||
-DFAISS_OPT_LEVEL=avx512-sr \ | ||
-DFAISS_ENABLE_GPU=OFF \ | ||
-DFAISS_ENABLE_PYTHON=OFF \ | ||
-DBLA_VENDOR=Intel10_64lp \ | ||
-DCMAKE_INSTALL_LIBDIR=lib \ | ||
-DCMAKE_BUILD_TYPE=Release . | ||
|
||
make -C _build -j$(nproc) faiss faiss_avx2 faiss_avx512 | ||
make -C _build -j$(nproc) faiss faiss_avx2 faiss_avx512 faiss_avx512_sr | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is used for faiss's conda packaging upload. I don't think we want to expose this build mode yet in conda officially. Can you omit this for now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed. |
||
|
||
cmake --install _build --prefix $PREFIX | ||
cmake --install _build --prefix _libfaiss_stage/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linux-x86_64-AVX512-advanced-cmake