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
9f734b3c
Commit
9f734b3c
authored
Sep 08, 2022
by
Po-Yen, Chen
Browse files
Add template parameter 'InBlockLdsExtraW'
parent
078d1df1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
include/ck/tensor_operation/gpu/device/device_permute.hpp
include/ck/tensor_operation/gpu/device/device_permute.hpp
+3
-0
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
+3
-4
No files found.
include/ck/tensor_operation/gpu/device/device_permute.hpp
View file @
9f734b3c
...
@@ -82,6 +82,7 @@ template <typename InDataType,
...
@@ -82,6 +82,7 @@ template <typename InDataType,
index_t
NPerBlock
,
index_t
NPerBlock
,
index_t
HPerBlock
,
index_t
HPerBlock
,
index_t
WPerBlock
,
index_t
WPerBlock
,
index_t
InBlockLdsExtraW
,
index_t
InScalarPerVector
,
index_t
InScalarPerVector
,
index_t
OutScalarPerVector
>
index_t
OutScalarPerVector
>
struct
DevicePermute
:
detail
::
DevicePermuteBase
<
DevicePermute
<
InDataType
,
struct
DevicePermute
:
detail
::
DevicePermuteBase
<
DevicePermute
<
InDataType
,
...
@@ -92,6 +93,7 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
...
@@ -92,6 +93,7 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
NPerBlock
,
NPerBlock
,
HPerBlock
,
HPerBlock
,
WPerBlock
,
WPerBlock
,
InBlockLdsExtraW
,
InScalarPerVector
,
InScalarPerVector
,
OutScalarPerVector
>>
OutScalarPerVector
>>
{
{
...
@@ -147,6 +149,7 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
...
@@ -147,6 +149,7 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
NPerBlock
,
NPerBlock
,
HPerBlock
,
HPerBlock
,
WPerBlock
,
WPerBlock
,
InBlockLdsExtraW
,
InScalarPerVector
,
InScalarPerVector
,
OutScalarPerVector
>
;
OutScalarPerVector
>
;
...
...
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
View file @
9f734b3c
...
@@ -99,6 +99,7 @@ template <typename InGridDesc,
...
@@ -99,6 +99,7 @@ template <typename InGridDesc,
index_t
NPerBlock
,
index_t
NPerBlock
,
index_t
HPerBlock
,
index_t
HPerBlock
,
index_t
WPerBlock
,
index_t
WPerBlock
,
index_t
InBlockLdsExtraW
,
index_t
InScalarPerVector
,
index_t
InScalarPerVector
,
index_t
OutScalarPerVector
>
index_t
OutScalarPerVector
>
struct
GridwisePermute
struct
GridwisePermute
...
@@ -117,11 +118,9 @@ struct GridwisePermute
...
@@ -117,11 +118,9 @@ struct GridwisePermute
__host__
__device__
static
constexpr
auto
GetInBlockDesc
()
__host__
__device__
static
constexpr
auto
GetInBlockDesc
()
{
{
constexpr
index_t
InBlockLdsExtraM
=
0
;
return
make_naive_tensor_descriptor
(
make_tuple
(
1
,
Number
<
HPerBlock
>
{},
Number
<
WPerBlock
>
{}),
return
make_naive_tensor_descriptor
(
make_tuple
(
1
,
Number
<
HPerBlock
>
{},
Number
<
WPerBlock
>
{}),
make_tuple
(
Number
<
WPerBlock
+
InBlockLdsExtra
M
>
{},
make_tuple
(
Number
<
WPerBlock
+
InBlockLdsExtra
W
>
{},
Number
<
WPerBlock
+
InBlockLdsExtra
M
>
{},
Number
<
WPerBlock
+
InBlockLdsExtra
W
>
{},
I1
));
I1
));
}
}
...
...
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