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

build: update to faiss 1.10.0 #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion faiss-sys/faiss
Submodule faiss updated 761 files
8 changes: 4 additions & 4 deletions faiss-sys/gen_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if ! which bindgen > /dev/null; then
fi

repo_url=https://github.com/facebookresearch/faiss
repo_rev=v1.8.0
cuda_root=/opt/cuda
repo_rev=v1.10.0
cuda_root=/usr/local/cuda

if [ ! -d faiss ]; then
git clone "$repo_url" faiss --branch "$repo_rev" --depth 1
Expand All @@ -24,7 +24,7 @@ for header in $headers; do
echo "#include \""$header"\"" >> c_api.h;
done

cmd="bindgen --rust-target 1.59 $bindgen_opt c_api.h -o src/bindings.rs"
cmd="bindgen --rust-target 1.84 $bindgen_opt c_api.h -o src/bindings.rs"
echo ${cmd}
${cmd}

Expand All @@ -33,7 +33,7 @@ for header in $headers; do
echo "#include \""$header"\"" >> c_api.h;
done

cmd="bindgen --rust-target 1.59 $bindgen_opt c_api.h -o src/bindings_gpu.rs -- -Ifaiss/c_api -I$cuda_root/include"
cmd="bindgen --rust-target 1.84 $bindgen_opt c_api.h -o src/bindings_gpu.rs -- -Ifaiss/c_api -I$cuda_root/include"
echo ${cmd}
${cmd}

Expand Down
Loading
Loading