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
33aff2ef
Commit
33aff2ef
authored
Sep 16, 2024
by
carlushuang
Browse files
modify format
parent
483ad69a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
example/ck_tile/04_topk_softmax/topk_softmax.cpp
example/ck_tile/04_topk_softmax/topk_softmax.cpp
+2
-1
include/ck_tile/ops/softmax/block/block_softmax_2d.hpp
include/ck_tile/ops/softmax/block/block_softmax_2d.hpp
+8
-7
No files found.
example/ck_tile/04_topk_softmax/topk_softmax.cpp
View file @
33aff2ef
...
...
@@ -224,7 +224,8 @@ bool test_topk_softmax(ck_tile::ArgParser args)
// constexpr auto uf = ck_tile::static_uford<sss, pks, ord>{};
// ck_tile::static_for<0, uf.get_num_of_access(), 1>{}([&](auto i_access){
// uf([&](auto i_0, auto i_1, auto i_2, auto i_3, auto i_4, auto i_5, auto i_6, auto i_7) {
// uf([&](auto i_0, auto i_1, auto i_2, auto i_3, auto i_4, auto i_5, auto i_6, auto
// i_7) {
// decltype(i_0)::push_front(i_access).fo_0();
// decltype(i_1)::push_front(i_access).fo_1();
// decltype(i_2)::push_front(i_access).fo_2();
...
...
include/ck_tile/ops/softmax/block/block_softmax_2d.hpp
View file @
33aff2ef
...
...
@@ -34,7 +34,8 @@ struct BlockSoftmax2D
const
auto
f_max3
=
[](
auto
e0
,
auto
e1
,
auto
e2
)
{
float
rtn
;
asm
volatile
(
"v_max3_f32 %0, %1, %2, %3"
:
"=v"
(
rtn
)
:
"v"
(
e0
),
"v"
(
e1
),
"v"
(
e2
));
return
rtn
;};
return
rtn
;
};
const
auto
f_sum3
=
[](
auto
e0
,
auto
e1
,
auto
e2
)
{
return
e0
+
e1
+
e2
;
};
#endif
...
...
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