运行 configure 的时候出现的错误:
./configure --with-python=/usr/bin/python3
…
checking for nvcc… nvcc
checking cuda.h usability… no
checking cuda.h presence… no
checking for cuda.h… no
configure: error: in /home/qfu/src/faiss': configure: error: Couldn't find cuda.h See
config.log’ for more details
qfu@server229:~/src/faiss$
这是因为 faiss 的 configure 脚本不会检测 cuda 的路径,需要手动指定
./configure --with-python=/usr/bin/python3 --with-cuda=/usr/local/cuda
解决问题