Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
FlashMLA
Commits
b9856c3a
Commit
b9856c3a
authored
Mar 31, 2026
by
zhangyh15
Browse files
打包时依赖可以带上torch版本
parent
f01246b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
setup.py
setup.py
+6
-0
No files found.
setup.py
View file @
b9856c3a
...
@@ -138,6 +138,10 @@ def _find_rocm_home() -> Optional[str]:
...
@@ -138,6 +138,10 @@ def _find_rocm_home() -> Optional[str]:
return
rocm_home
return
rocm_home
ROCM_HOME
=
_find_rocm_home
()
ROCM_HOME
=
_find_rocm_home
()
pytorch_dep
=
'torch'
if
os
.
getenv
(
'PYTORCH_VERSION'
):
pytorch_dep
+=
"=="
+
os
.
getenv
(
'PYTORCH_VERSION'
)
setup
(
setup
(
name
=
"flash_mla"
,
name
=
"flash_mla"
,
version
=
get_version
(
ROCM_HOME
),
version
=
get_version
(
ROCM_HOME
),
...
@@ -145,4 +149,6 @@ setup(
...
@@ -145,4 +149,6 @@ setup(
ext_modules
=
ext_modules
,
ext_modules
=
ext_modules
,
package_data
=
{
"flash_mla"
:[
"asm/*.co"
]},
package_data
=
{
"flash_mla"
:[
"asm/*.co"
]},
cmdclass
=
{
"build_ext"
:
BuildExtension
},
cmdclass
=
{
"build_ext"
:
BuildExtension
},
install_requires
=
[
pytorch_dep
],
)
)
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