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
102f4a30
"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "aa7d25600f2b31d94c8d44b8dcb5fbf3bf2de075"
Commit
102f4a30
authored
Aug 21, 2024
by
zhanggzh
Browse files
Update setup.py
parent
05c6bc89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
faiss/python/setup.py
faiss/python/setup.py
+13
-1
No files found.
faiss/python/setup.py
View file @
102f4a30
...
...
@@ -39,6 +39,18 @@ if found_swigfaiss_avx2:
print
(
f
"Copying
{
swigfaiss_avx2_lib
}
"
)
shutil
.
copyfile
(
"swigfaiss_avx2.py"
,
"faiss/swigfaiss_avx2.py"
)
shutil
.
copyfile
(
swigfaiss_avx2_lib
,
f
"faiss/_swigfaiss_avx2
{
ext
}
"
)
ROCM_PATH
=
os
.
getenv
(
'ROCM_PATH'
)
dtk_path
=
ROCM_PATH
+
'/.info/rocm_version'
with
open
(
dtk_path
,
'r'
)
as
file
:
content
=
file
.
read
().
strip
()
dtk_version
=
content
.
replace
(
'.'
,
''
)
print
(
dtk_version
)
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
ver_path
=
os
.
path
.
join
(
cwd
,
"faiss"
,
"__init__.py"
)
with
open
(
ver_path
,
'w'
)
as
f
:
f
.
write
(
"__version__ = '1.7.2'
\n
"
)
version
=
'1.7.2'
+
'+das.dtk'
+
dtk_version
f
.
write
(
f
"__dcu_version__ = '
{
version
}
'
\n
"
)
long_description
=
"""
Faiss is a library for efficient similarity search and clustering of dense
...
...
@@ -50,7 +62,7 @@ are implemented on the GPU. It is developed by Facebook AI Research.
"""
setup
(
name
=
'faiss'
,
version
=
'1.7.2
-dtk22.10-gitb7348e7df780'
,
version
=
'1.7.2
'
+
"+das.dtk"
+
dtk_version
,
description
=
'A library for efficient similarity search and clustering of dense vectors'
,
long_description
=
long_description
,
url
=
'https://github.com/facebookresearch/faiss'
,
...
...
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