天天看点

解决 faiss 的编译错误 -- 找不到 CUDA 库问题

运行 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

[email protected]:~/src/faiss$

这是因为 faiss 的 configure 脚本不会检测 cuda 的路径,需要手动指定

./configure --with-python=/usr/bin/python3 --with-cuda=/usr/local/cuda

解决问题

继续阅读