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
99ed2c1a
Commit
99ed2c1a
authored
Jul 26, 2024
by
danyao12
Browse files
code sync up
parent
3552041a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ck_tile/ops/fmha/pipeline/block_fmha_pipeline_qr_ks_vs_async.hpp
.../ops/fmha/pipeline/block_fmha_pipeline_qr_ks_vs_async.hpp
+2
-2
No files found.
include/ck_tile/ops/fmha/pipeline/block_fmha_pipeline_qr_ks_vs_async.hpp
View file @
99ed2c1a
...
@@ -82,7 +82,7 @@ struct BlockFmhaPipelineQRKSVSAsync
...
@@ -82,7 +82,7 @@ struct BlockFmhaPipelineQRKSVSAsync
else
else
{
{
// minimize occupancy
// minimize occupancy
if
constexpr
(
BiasEnum
!=
BlockAttentionBiasEnum
::
NO_BIAS
&&
kHa
sDropout
)
if
constexpr
(
BiasEnum
!=
BlockAttentionBiasEnum
::
NO_BIAS
&&
FmhaDropout
::
I
sDropout
)
{
{
return
1
;
return
1
;
}
}
...
@@ -303,7 +303,7 @@ struct BlockFmhaPipelineQRKSVSAsync
...
@@ -303,7 +303,7 @@ struct BlockFmhaPipelineQRKSVSAsync
constexpr
auto
k_pre_np
=
[
&
]()
{
constexpr
auto
k_pre_np
=
[
&
]()
{
if
constexpr
(
kPadSeqLenK
&&
if
constexpr
(
kPadSeqLenK
&&
(
BiasEnum
==
BlockAttentionBiasEnum
::
ELEMENTWISE_BIAS
||
(
BiasEnum
==
BlockAttentionBiasEnum
::
ELEMENTWISE_BIAS
||
(
BiasEnum
!=
BlockAttentionBiasEnum
::
NO_BIAS
&&
kHa
sDropout
)))
(
BiasEnum
!=
BlockAttentionBiasEnum
::
NO_BIAS
&&
FmhaDropout
::
I
sDropout
)))
return
bool_constant
<
true
>
{};
return
bool_constant
<
true
>
{};
else
else
return
bool_constant
<
false
>
{};
return
bool_constant
<
false
>
{};
...
...
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