Commit e2fe5c23 authored by zhanggezhong's avatar zhanggezhong
Browse files

Update README.md

parent a478a183
Pipeline #1947 canceled with stages
......@@ -36,6 +36,14 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提
git clone https://developer.sourcefind.cn/codes/OpenDAS/faiss.git # 根据编译需要切换分支
```
- 提供2种源码编译方式(进入faiss目录):
注:编译时需修改环境中的cmake,添加cu文件编译支持
```
find -name CMakeCXXCompiler.cmake.in
vim /usr/share/cmake3/Modules/CMakeCXXCompiler.cmake.in#这里打开自己的实际路径
修改下面两行代码在最后分别添加 cu;CU 和 cuh;CUH
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP;cu;CU)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC;cuh;CUH)
```
```
1. 编译whl包并安装
pip3 install wheel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment