Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Faiss
Commits
399499a4
"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "bb73934faace8c5c9b378c7e6a34a1c050bcb9be"
Commit
399499a4
authored
Nov 21, 2024
by
zhanggezhong
Browse files
Update README.md
parent
e2fe5c23
Pipeline
#1948
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
README.md
README.md
+4
-1
No files found.
README.md
View file @
399499a4
...
@@ -36,14 +36,17 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提
...
@@ -36,14 +36,17 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提
git clone https://developer.sourcefind.cn/codes/OpenDAS/faiss.git
# 根据编译需要切换分支
git clone https://developer.sourcefind.cn/codes/OpenDAS/faiss.git
# 根据编译需要切换分支
```
```
-
提供2种源码编译方式(进入faiss目录):
-
提供2种源码编译方式(进入faiss目录):
注:
编译时需修改环境中的cmake,添加cu文件编译支持
注:
```
```
1 编译时需修改环境中的cmake,添加cu文件编译支持
find -name CMakeCXXCompiler.cmake.in
find -name CMakeCXXCompiler.cmake.in
vim /usr/share/cmake3/Modules/CMakeCXXCompiler.cmake.in#这里打开自己的实际路径
vim /usr/share/cmake3/Modules/CMakeCXXCompiler.cmake.in#这里打开自己的实际路径
修改下面两行代码在最后分别添加 cu;CU 和 cuh;CUH
修改下面两行代码在最后分别添加 cu;CU 和 cuh;CUH
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP;cu;CU)
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)
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包并安装
1. 编译whl包并安装
pip3 install wheel
pip3 install wheel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment