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
e2fe5c23
Commit
e2fe5c23
authored
Nov 21, 2024
by
zhanggezhong
Browse files
Update README.md
parent
a478a183
Pipeline
#1947
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
README.md
README.md
+8
-0
No files found.
README.md
View file @
e2fe5c23
...
...
@@ -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
...
...
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