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
cc0d4500
"include/vscode:/vscode.git/clone" did not exist on "4cdf78fc98ebe33a58f69511cfa5c934f40e43d8"
Commit
cc0d4500
authored
Sep 07, 2022
by
Po-Yen, Chen
Browse files
Check tensor descriptor dimensions in 'GridwiseElementwise_1D'
parent
b24c5f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
include/ck/tensor_operation/gpu/grid/gridwise_elementwise_1d.hpp
.../ck/tensor_operation/gpu/grid/gridwise_elementwise_1d.hpp
+4
-0
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_elementwise_1d.hpp
View file @
cc0d4500
...
@@ -83,6 +83,8 @@ struct GridwiseElementwise_1D
...
@@ -83,6 +83,8 @@ struct GridwiseElementwise_1D
auto
in_global_buf_tuple
=
generate_tuple
(
auto
in_global_buf_tuple
=
generate_tuple
(
[
&
](
auto
I
)
{
[
&
](
auto
I
)
{
static_assert
(
in_grid_1d_desc_tuple
[
I
].
GetNumOfDimension
()
==
1
);
return
make_dynamic_buffer
<
AddressSpaceEnum
::
Global
>
(
return
make_dynamic_buffer
<
AddressSpaceEnum
::
Global
>
(
p_in_global_tuple
[
I
],
in_grid_1d_desc_tuple
[
I
].
GetElementSpaceSize
());
p_in_global_tuple
[
I
],
in_grid_1d_desc_tuple
[
I
].
GetElementSpaceSize
());
},
},
...
@@ -90,6 +92,8 @@ struct GridwiseElementwise_1D
...
@@ -90,6 +92,8 @@ struct GridwiseElementwise_1D
auto
out_global_buf_tuple
=
generate_tuple
(
auto
out_global_buf_tuple
=
generate_tuple
(
[
&
](
auto
I
)
{
[
&
](
auto
I
)
{
static_assert
(
out_grid_1d_desc_tuple
[
I
].
GetNumOfDimension
()
==
1
);
return
make_dynamic_buffer
<
AddressSpaceEnum
::
Global
>
(
return
make_dynamic_buffer
<
AddressSpaceEnum
::
Global
>
(
p_out_global_tuple
[
I
],
out_grid_1d_desc_tuple
[
I
].
GetElementSpaceSize
());
p_out_global_tuple
[
I
],
out_grid_1d_desc_tuple
[
I
].
GetElementSpaceSize
());
},
},
...
...
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