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
95268357
Commit
95268357
authored
Feb 21, 2023
by
Chao Liu
Browse files
clean
parent
dfe6dedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
example/91_tile_program/im2col.cpp
example/91_tile_program/im2col.cpp
+7
-7
No files found.
example/91_tile_program/im2col.cpp
View file @
95268357
...
@@ -229,7 +229,7 @@ struct Im2Col
...
@@ -229,7 +229,7 @@ struct Im2Col
constexpr
auto
I0
=
Number
<
0
>
{};
constexpr
auto
I0
=
Number
<
0
>
{};
#if
0
// debug
#if
1
// debug
const
auto
a_src_desc
=
tensor_operation
::
TransformConvFwdToGemm
<
const
auto
a_src_desc
=
tensor_operation
::
TransformConvFwdToGemm
<
NDimSpatial
,
NDimSpatial
,
tensor_operation
::
device
::
ConvolutionForwardSpecialization
::
Default
>::
tensor_operation
::
device
::
ConvolutionForwardSpecialization
::
Default
>::
...
@@ -261,13 +261,13 @@ struct Im2Col
...
@@ -261,13 +261,13 @@ struct Im2Col
#endif
#endif
#if 1 // debug
#if 1 // debug
const
auto
a_dst_desc
=
ps
(
make_naive_tensor_descriptor
(
make_tuple
(
a_gemmm_gemmk_lengths
[
0
],
a_gemmm_gemmk_lengths
[
1
]),
make_tuple
(
a_gemmm_gemmk_strides
[
0
],
a_gemmm_gemmk_strides
[
1
])));
#else
const
auto
a_dst_desc
=
make_naive_tensor_descriptor
(
const
auto
a_dst_desc
=
make_naive_tensor_descriptor
(
make_tuple
(
a_gemmm_gemmk_lengths
[
0
],
a_gemmm_gemmk_lengths
[
1
]),
make_tuple
(
a_gemmm_gemmk_lengths
[
0
],
a_gemmm_gemmk_lengths
[
1
]),
make_tuple
(
a_gemmm_gemmk_strides
[
0
],
a_gemmm_gemmk_strides
[
1
]));
make_tuple
(
a_gemmm_gemmk_strides
[
0
],
a_gemmm_gemmk_strides
[
1
]));
#else
const
auto
a_dst_desc
=
ps
(
make_naive_tensor_descriptor
(
make_tuple
(
a_gemmm_gemmk_lengths
[
0
],
a_gemmm_gemmk_lengths
[
1
]),
make_tuple
(
a_gemmm_gemmk_strides
[
0
],
a_gemmm_gemmk_strides
[
1
])));
#endif
#endif
const
auto
a_src
=
make_tensor
<
AddressSpaceEnum
::
Global
,
true
>
(
a_src_desc
,
p_a_img
);
const
auto
a_src
=
make_tensor
<
AddressSpaceEnum
::
Global
,
true
>
(
a_src_desc
,
p_a_img
);
...
@@ -282,9 +282,9 @@ struct Im2Col
...
@@ -282,9 +282,9 @@ struct Im2Col
const
auto
num_tile_m
=
ps
.
read_first_lane
(
num_gemmm
/
kMPerTile
);
const
auto
num_tile_m
=
ps
.
read_first_lane
(
num_gemmm
/
kMPerTile
);
#if 1 // debug
#if 1 // debug
const
auto
block2tile
=
ps
(
make_cluster_descriptor
(
make_tuple
(
num_tile_m
)));
#else
const
auto
block2tile
=
make_cluster_descriptor
(
make_tuple
(
num_tile_m
));
const
auto
block2tile
=
make_cluster_descriptor
(
make_tuple
(
num_tile_m
));
#else
const
auto
block2tile
=
ps
(
make_cluster_descriptor
(
make_tuple
(
num_tile_m
)));
#endif
#endif
const
auto
id_tile
=
block2tile
.
CalculateBottomIndex
(
make_tuple
(
id_block
));
const
auto
id_tile
=
block2tile
.
CalculateBottomIndex
(
make_tuple
(
id_block
));
...
...
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