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
18ba135f
Commit
18ba135f
authored
Sep 07, 2022
by
Po-Yen, Chen
Browse files
Add N/H/WPerBlock template parameter to 'DevicePermute'
parent
b8abc3e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
example/36_permute/permute_fp16.cpp
example/36_permute/permute_fp16.cpp
+5
-5
include/ck/tensor_operation/gpu/device/device_permute.hpp
include/ck/tensor_operation/gpu/device/device_permute.hpp
+6
-0
No files found.
example/36_permute/permute_fp16.cpp
View file @
18ba135f
...
@@ -8,11 +8,11 @@ using BDataType = F16;
...
@@ -8,11 +8,11 @@ using BDataType = F16;
// clang-format off
// clang-format off
using
DevicePermuteInstance
=
ck
::
tensor_operation
::
device
::
DevicePermute
using
DevicePermuteInstance
=
ck
::
tensor_operation
::
device
::
DevicePermute
// ######| InData| OutData| Elementwise| NumDim| MPerThread| InScalar| OutScalar|
// ######| InData| OutData| Elementwise| NumDim|
NPer| HPer| WPer|
MPerThread| InScalar| OutScalar|
// ######| Type| Type| Operation| | | PerVector| PerVector|
// ######| Type| Type| Operation| |
Block| Block| Block|
| PerVector| PerVector|
// ######| | | | | | | |
// ######| | | | |
| | |
| | |
// ######| | | | | | | |
// ######| | | | |
| | |
| | |
<
ADataType
,
BDataType
,
PassThrough
,
4
,
8
,
8
,
1
>
;
<
ADataType
,
BDataType
,
PassThrough
,
4
,
128
,
128
,
128
,
8
,
8
,
1
>
;
// clang-format on
// clang-format on
#include "run_permute_example.inc"
#include "run_permute_example.inc"
...
...
include/ck/tensor_operation/gpu/device/device_permute.hpp
View file @
18ba135f
...
@@ -77,6 +77,9 @@ template <typename InDataType,
...
@@ -77,6 +77,9 @@ template <typename InDataType,
typename
OutDataType
,
typename
OutDataType
,
typename
ElementwiseOperation
,
typename
ElementwiseOperation
,
index_t
NumDim
,
index_t
NumDim
,
index_t
NPerBlock
,
index_t
HPerBlock
,
index_t
WPerBlock
,
index_t
MPerThread
,
index_t
MPerThread
,
index_t
InScalarPerVector
,
index_t
InScalarPerVector
,
index_t
OutScalarPerVector
>
index_t
OutScalarPerVector
>
...
@@ -84,6 +87,9 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
...
@@ -84,6 +87,9 @@ struct DevicePermute : detail::DevicePermuteBase<DevicePermute<InDataType,
OutDataType
,
OutDataType
,
ElementwiseOperation
,
ElementwiseOperation
,
NumDim
,
NumDim
,
NPerBlock
,
HPerBlock
,
WPerBlock
,
MPerThread
,
MPerThread
,
InScalarPerVector
,
InScalarPerVector
,
OutScalarPerVector
>>
OutScalarPerVector
>>
...
...
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