1. 安装
0. clone源码
git clone https://gitee.com/mirrors/faiss.git
1. 编译
./configure --without-cuda
make
make install
2. vscode调试
2.1 编译例子demo
cp $FAISS/turorial/cpp
make
2.2 vscode配置
- add configure
- 修改launch.json
program 修改为: “program”: “${workspaceFolder}/tutorial/cpp/3-IVFPQ”,
2.3 结果