Commit 399499a4 authored by zhanggezhong's avatar zhanggezhong
Browse files

Update README.md

parent e2fe5c23
Pipeline #1948 failed with stages
in 0 seconds
......@@ -36,14 +36,17 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提
git clone https://developer.sourcefind.cn/codes/OpenDAS/faiss.git # 根据编译需要切换分支
```
- 提供2种源码编译方式(进入faiss目录):
注:编译时需修改环境中的cmake,添加cu文件编译支持
注:
```
1 编译时需修改环境中的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)
2 编译时编译环旭需安装mkl,将编译指令中的/opt/intel/compilers_and_libraries_2020.4.304/linux/mkl/lib/intel64_lin/libmkl_rt.so换为自己编译环境中实际的路径
```
```
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