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
5e577dee
Commit
5e577dee
authored
Mar 09, 2026
by
zhanghj2
Browse files
fix mha_fwd_kvcache_mla_nope_pe接口架构判断
parent
79c06a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/extension/flash_api.h
csrc/extension/flash_api.h
+2
-2
No files found.
csrc/extension/flash_api.h
View file @
5e577dee
...
@@ -337,8 +337,8 @@ mha_fwd_kvcache_mla_nope_pe(
...
@@ -337,8 +337,8 @@ mha_fwd_kvcache_mla_nope_pe(
// bool is_sm90 = dprops->major == 9 && dprops->minor == 0;
// bool is_sm90 = dprops->major == 9 && dprops->minor == 0;
// TORCH_CHECK(is_sm90);
// TORCH_CHECK(is_sm90);
Arch
arch
=
Arch
();
Arch
arch
=
Arch
();
if
(
!
arch
.
is_gfx93x
()
||
!
arch
.
is_gfx928
())
{
if
(
!
(
arch
.
is_gfx93x
()
||
arch
.
is_gfx928
())
)
{
TORCH_CHECK
(
false
,
"Dense decode MLA is only supported on gfx936 or gfx938 architecture"
);
TORCH_CHECK
(
false
,
"Dense decode MLA is only supported on
gfx928,
gfx936 or gfx938 architecture"
);
}
}
at
::
Tensor
vcache
=
vcache_
.
has_value
()
?
vcache_
.
value
()
:
kcache
;
at
::
Tensor
vcache
=
vcache_
.
has_value
()
?
vcache_
.
value
()
:
kcache
;
...
...
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