Skip to content

Commit

Permalink
Merge pull request facebookresearch#8 from gensmusic/upgrade-faiss
Browse files Browse the repository at this point in the history
upgrade faiss facebookresearch#7
  • Loading branch information
Enet4 authored Sep 13, 2020
2 parents b010e5e + 843c1a4 commit 30da2c4
Show file tree
Hide file tree
Showing 10 changed files with 1,777 additions and 1,484 deletions.
6 changes: 3 additions & 3 deletions faiss-sys/gen_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ if ! which bindgen > /dev/null; then
fi

repo_url=https://github.com/Enet4/faiss.git
repo_rev=2bfbead8f1f29030c11797d161b0b9dec6c2d8a3
repo_rev=2ac91ad79d9b82800804e073b13a64223cdd6727
cuda_root=/opt/cuda

git clone $repo_url faiss
cd faiss
git checkout -q $repo_rev
cd ..

bindgen_opt='--whitelist-function faiss_.* --whitelist-type idx_t|Faiss.* --opaque-type FILE'
bindgen_opt='--size_t-is-usize --whitelist-function faiss_.* --whitelist-type idx_t|Faiss.* --opaque-type FILE'

headers=`ls faiss/c_api/*_c.h`
headers=`ls faiss/c_api/*_c.h faiss/c_api/impl/*_c.h`
echo '// Auto-generated, do not edit!' > c_api.h
for header in $headers; do
echo "#include \""$header"\"" >> c_api.h;
Expand Down
Loading

0 comments on commit 30da2c4

Please sign in to comment.