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
cee2d38e
Commit
cee2d38e
authored
Jul 28, 2022
by
ltqin
Browse files
change name to PartitionedBlockwiseReduction_V2
parent
7a04ca2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
include/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
...de/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
+14
-14
include/ck/tensor_operation/gpu/block/reduction_functions_blockwise.hpp
...sor_operation/gpu/block/reduction_functions_blockwise.hpp
+1
-1
No files found.
include/ck/tensor_operation/gpu/block/blockwise_softmax_v1.hpp
View file @
cee2d38e
...
@@ -62,7 +62,7 @@ struct BlockwiseSoftmax_V1
...
@@ -62,7 +62,7 @@ struct BlockwiseSoftmax_V1
using
ThreadClusterLengths_M_K
=
Sequence
<
MPerBlock
,
WaveSize
/
MPerXDL
>
;
using
ThreadClusterLengths_M_K
=
Sequence
<
MPerBlock
,
WaveSize
/
MPerXDL
>
;
using
BlockwiseMaxReduce
=
using
BlockwiseMaxReduce
=
PartitionedBlockwiseReduction2
<
AccDataType
,
PartitionedBlockwiseReduction
_V
2
<
AccDataType
,
BlockSize
,
BlockSize
,
ThreadClusterLengths_M_K
,
ThreadClusterLengths_M_K
,
BlockToMKMap_M0_K_M1Adapt
,
BlockToMKMap_M0_K_M1Adapt
,
...
@@ -71,7 +71,7 @@ struct BlockwiseSoftmax_V1
...
@@ -71,7 +71,7 @@ struct BlockwiseSoftmax_V1
detail
::
AccumulateWithNanIgnore
<
reduce
::
Max
,
AccDataType
>>
;
detail
::
AccumulateWithNanIgnore
<
reduce
::
Max
,
AccDataType
>>
;
using
BlockwiseSumReduce
=
using
BlockwiseSumReduce
=
PartitionedBlockwiseReduction2
<
AccDataType
,
PartitionedBlockwiseReduction
_V
2
<
AccDataType
,
BlockSize
,
BlockSize
,
ThreadClusterLengths_M_K
,
ThreadClusterLengths_M_K
,
BlockToMKMap_M0_K_M1Adapt
,
BlockToMKMap_M0_K_M1Adapt
,
...
...
include/ck/tensor_operation/gpu/block/reduction_functions_blockwise.hpp
View file @
cee2d38e
...
@@ -97,7 +97,7 @@ template <typename AccDataType,
...
@@ -97,7 +97,7 @@ template <typename AccDataType,
bool
PropagateNan
,
bool
PropagateNan
,
typename
Accumulation
=
typename
Accumulation
=
detail
::
AccumulateWithNanCheck
<
PropagateNan
,
OpReduce
,
AccDataType
>
>
detail
::
AccumulateWithNanCheck
<
PropagateNan
,
OpReduce
,
AccDataType
>
>
struct
PartitionedBlockwiseReduction2
struct
PartitionedBlockwiseReduction
_V
2
{
{
static_assert
(
BlockSize
==
ThreadClusterLengths_M_K
::
At
(
0
)
*
ThreadClusterLengths_M_K
::
At
(
1
),
static_assert
(
BlockSize
==
ThreadClusterLengths_M_K
::
At
(
0
)
*
ThreadClusterLengths_M_K
::
At
(
1
),
"The product of cluster lengths should be same as BlockSize!"
);
"The product of cluster lengths should be same as BlockSize!"
);
...
...
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