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
gaoqiong
composable_kernel_ROCM
Commits
6ef86201
Unverified
Commit
6ef86201
authored
Jan 29, 2025
by
Max Podkorytov
Browse files
modify host attention impl accounting for score_mod
parent
510ff45f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
example/ck_tile/18_flexattn/fmha_fwd.cpp
example/ck_tile/18_flexattn/fmha_fwd.cpp
+9
-0
No files found.
example/ck_tile/18_flexattn/fmha_fwd.cpp
View file @
6ef86201
...
...
@@ -1375,6 +1375,15 @@ bool run(const ck_tile::ArgParser& arg_parser)
ck_tile
::
identity
{},
ck_tile
::
scales
(
scale_s
));
auto
score_mod
=
[]
(
auto
score
,
ck_tile
::
index_t
b
,
ck_tile
::
index_t
h
,
ck_tile
::
index_t
q_idx
,
ck_tile
::
index_t
v_idx
)
{
(
void
)
score
;
(
void
)
b
;
(
void
)
h
;
(
void
)
q_idx
;
(
void
)
v_idx
;
return
score
;
};
s_host_ref
.
ForEach
([
&
](
auto
&
self
,
auto
i
)
{
self
(
i
)
=
score_mod
(
self
(
i
),
i
[
0
],
i
[
1
],
i
[
2
],
i
[
3
]);
});
if
(
bias
.
type
==
bias_enum
::
elementwise_bias
)
{
// elementwise bias
...
...
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