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
Commits
da047ec1
"tests/pipelines/vscode:/vscode.git/clone" did not exist on "7200daa412b9d0738e655fbac99077f9b899d1f1"
Commit
da047ec1
authored
Jul 21, 2022
by
ltqin
Browse files
change to input lds memory
parent
23262ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
include/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
...de/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
+3
-3
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdlops_v2r3.hpp
...k/tensor_operation/gpu/grid/gridwise_gemm_xdlops_v2r3.hpp
+2
-1
No files found.
include/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
View file @
da047ec1
...
...
@@ -27,13 +27,13 @@ struct BlockwiseSoftmax_V1
static
constexpr
auto
I2
=
Number
<
2
>
{};
constexpr
static
auto
c_thread_desc
=
make_naive_tensor_descriptor_packed
(
make_tuple
(
Number
<
MRepeat
>
{},
Number
<
NRepeat
>
{},
Number
<
RegSizePerXdlops
>
{}));
template
<
typename
CThreadBuffer
>
__host__
__device__
static
void
Run
(
CThreadBuffer
&
c_thread_buf
)
__host__
__device__
static
void
Run
(
CThreadBuffer
&
c_thread_buf
,
void
*
__restrict__
p_shared
)
{
// printf("c_thread_desc: {%d, %d, %d}", c_thread_desc.GetLength(I0).value,
// c_thread_desc.GetLength(I1).value, c_thread_desc.GetLength(I2).value);
__shared__
AccDataType
p_reduce_work_buffer
[
BlockSize
];
auto
p_reduce_work_buffer
=
static_cast
<
AccDataType
*>
(
p_shared
);
StaticBuffer
<
AddressSpaceEnum
::
Vgpr
,
AccDataType
,
MThreadSliceSize
,
true
>
max_value_buf
;
static_for
<
0
,
MThreadSliceSize
,
1
>
{}([
&
](
auto
I
)
{
max_value_buf
(
I
)
=
reduce
::
Max
::
template
GetIdentityValue
<
AccDataType
>();
...
...
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdlops_v2r3.hpp
View file @
da047ec1
...
...
@@ -473,6 +473,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_v2r3
c_thread_buf
,
num_k_block_main_loop
);
{
__shared__
AccDataType
p_reduce_work_buffer
[
BlockSize
];
using
BlockwiseSoftmax
=
BlockwiseSoftmax_V1
<
BlockSize
,
FloatAcc
,
MPerXDL
,
...
...
@@ -482,7 +483,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_v2r3
NXdlPerWave
,
1
,
1
>
;
BlockwiseSoftmax
::
Run
(
c_thread_buf
);
BlockwiseSoftmax
::
Run
(
c_thread_buf
,
p_reduce_work_buffer
);
}
// output: register to global memory
...
...
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