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
23c3a395
Commit
23c3a395
authored
Sep 12, 2022
by
Po-Yen, Chen
Browse files
Use more verbose name to avoid name collision
parent
910a26b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
+10
-9
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
View file @
23c3a395
...
@@ -16,23 +16,23 @@
...
@@ -16,23 +16,23 @@
namespace
ck
{
namespace
ck
{
namespace
detail
{
namespace
detail
{
template
<
index_t
HPerBlock
,
index_t
WPerBlock
,
typename
GridDesc
>
template
<
index_t
HPerBlock
,
index_t
WPerBlock
,
typename
GridDesc
>
struct
Block2TileMap
struct
GridwisePermute
Block2TileMap
{
{
static
constexpr
index_t
NumDim
=
GridDesc
::
GetNumOfDimension
();
static
constexpr
index_t
NumDim
=
GridDesc
::
GetNumOfDimension
();
static_assert
(
2
<=
NumDim
);
static_assert
(
2
<=
NumDim
);
static
constexpr
auto
I0
=
Number
<
0
>
{};
static
constexpr
auto
I0
=
Number
<
0
>
{};
Block2TileMap
()
=
delete
;
GridwisePermuteBlock2TileMap
()
=
delete
;
Block2TileMap
(
const
Block2TileMap
&
)
=
default
;
GridwisePermute
Block2TileMap
(
const
GridwisePermute
Block2TileMap
&
)
=
default
;
Block2TileMap
(
Block2TileMap
&&
)
=
delete
;
GridwisePermuteBlock2TileMap
(
GridwisePermute
Block2TileMap
&&
)
=
delete
;
~
Block2TileMap
()
=
default
;
~
GridwisePermute
Block2TileMap
()
=
default
;
Block2TileMap
&
operator
=
(
const
Block2TileMap
&
)
=
delete
;
GridwisePermute
Block2TileMap
&
operator
=
(
const
GridwisePermute
Block2TileMap
&
)
=
delete
;
Block2TileMap
&
operator
=
(
Block2TileMap
&&
)
=
delete
;
GridwisePermute
Block2TileMap
&
operator
=
(
GridwisePermute
Block2TileMap
&&
)
=
delete
;
explicit
Block2TileMap
(
const
GridDesc
&
desc
)
:
desc_
(
desc
)
{}
explicit
GridwisePermute
Block2TileMap
(
const
GridDesc
&
desc
)
:
desc_
(
desc
)
{}
__host__
constexpr
index_t
CalculateGridSize
(
const
GridDesc
&
desc
)
const
__host__
constexpr
index_t
CalculateGridSize
(
const
GridDesc
&
desc
)
const
{
{
...
@@ -123,7 +123,8 @@ struct GridwisePermute
...
@@ -123,7 +123,8 @@ struct GridwisePermute
using
ThisThreadBlock
=
ThisThreadBlock
<
BlockSize
>
;
using
ThisThreadBlock
=
ThisThreadBlock
<
BlockSize
>
;
using
DefaultBlock2TileMap
=
detail
::
Block2TileMap
<
HPerBlock
,
WPerBlock
,
InGridDesc
>
;
using
DefaultBlock2TileMap
=
detail
::
GridwisePermuteBlock2TileMap
<
HPerBlock
,
WPerBlock
,
InGridDesc
>
;
__host__
__device__
static
constexpr
auto
GetInBlockDesc
()
__host__
__device__
static
constexpr
auto
GetInBlockDesc
()
{
{
...
...
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