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
61108fdf
Unverified
Commit
61108fdf
authored
Jan 29, 2025
by
Max Podkorytov
Browse files
reorder score mod and scale in host verification
parent
8c96b18b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
example/ck_tile/18_flexattn/fmha_fwd.cpp
example/ck_tile/18_flexattn/fmha_fwd.cpp
+6
-1
No files found.
example/ck_tile/18_flexattn/fmha_fwd.cpp
View file @
61108fdf
...
...
@@ -1373,7 +1373,7 @@ bool run(const ck_tile::ArgParser& arg_parser)
s_host_ref
,
ck_tile
::
identity
{},
ck_tile
::
identity
{},
ck_tile
::
scales
(
scale_s
)
);
ck_tile
::
identity
{}
);
auto
score_mod
=
[]
(
auto
s
,
ck_tile
::
index_t
b
,
ck_tile
::
index_t
h
,
ck_tile
::
index_t
q_idx
,
ck_tile
::
index_t
v_idx
)
{
(
void
)
s
;
(
void
)
b
;
(
void
)
h
;
(
void
)
q_idx
;
(
void
)
v_idx
;
...
...
@@ -1384,6 +1384,11 @@ bool run(const ck_tile::ArgParser& arg_parser)
self
(
i
)
=
score_mod
(
self
(
i
),
i
[
0
],
i
[
1
],
i
[
2
],
i
[
3
]);
});
auto
scale_def
=
ck_tile
::
scales
(
scale_s
);
s_host_ref
.
ForEach
([
&
](
auto
&
self
,
auto
i
)
{
scale_def
(
self
(
i
));
});
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