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
0694d6ed
Commit
0694d6ed
authored
Nov 25, 2021
by
ltqin
Browse files
add tunning parameter for TT
parent
b282e62f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
device_operation/device_gemm_xdl_instance_f32_f32_f32_km_nk_mn.cpp
...eration/device_gemm_xdl_instance_f32_f32_f32_km_nk_mn.cpp
+20
-0
device_operation/device_gemm_xdl_instance_f32_f32_f32_mk_kn_mn.cpp
...eration/device_gemm_xdl_instance_f32_f32_f32_mk_kn_mn.cpp
+0
-1
No files found.
device_operation/device_gemm_xdl_instance_f32_f32_f32_km_nk_mn.cpp
View file @
0694d6ed
#include <stdlib.h>
#include "config.hpp"
#include "device_gemm_xdl.hpp"
#include "device_gemm_splitk_xdl.hpp"
#include "device_gemm_instance.hpp"
namespace
ck
{
...
...
@@ -18,6 +19,24 @@ template <ck::index_t... Is>
using
S
=
ck
::
Sequence
<
Is
...
>
;
// Compilation parameters for a[k, m] * b[n, k] = c[m, n]
#if CK_USE_SPLITK_XDLOPS
using
device_gemm_xdl_instance_f32_f32_f32_km_nk_mn
=
std
::
tuple
<
// clang-format off
//##########| AData| BData| CData| AccData| ALayout| BLayout| CLayout| Block| MPer| NPer| K0Per| K1| MPer| NPer| MXdl| NXdl| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| BBlockTransfer| BBlockTransfer| BBlockTransfer| BBlockTransfer| BlockTransfer| BBlockTransfer| BBlockTransfer| CThreadTransfer| CThreadTransfer| ABlockLds| BBlockLds|
//##########| Type| Type| Type| Type| | | | Size| Block| Block| Block| | XDL| XDL| Per| Per| ThreadSlice| ThreadCluster| ThreadCluster| SrcAccessOrder| SrcVectorDim| SrcScalar| DstScalar| ThreadSlice| ThreadCluster| ThreadCluster| SrcAccessOrder| SrcVectorDim| SrcScalar| DstScalar| SrcDstVectorDim| DstScalar| AddExtraM| AddExtraN|
//##########| | | | | | | | | | | | | | | Wave| Wave| Lengths_K0_N_K1| Lengths_K0_M_K1| ArrangeOrder| | | PerVector| PerVector_K1| Lengths_K0_N_K1| Lengths_K0_N_K1| ArrangeOrder| | | PerVector| PerVector_K1| | PerVector| | |
//##########| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
DeviceGemmSplitKXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
256
,
256
,
128
,
4
,
4
,
32
,
32
,
4
,
2
,
S
<
1
,
1
,
4
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
1
,
3
,
2
>
,
S
<
0
,
1
,
3
,
2
>
,
2
,
4
,
4
,
S
<
1
,
1
,
2
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
2
,
1
,
3
>
,
S
<
0
,
2
,
1
,
3
>
,
3
,
4
,
4
,
7
,
1
,
true
,
true
,
720
>
,
DeviceGemmSplitKXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
256
,
128
,
256
,
4
,
4
,
32
,
32
,
2
,
4
,
S
<
1
,
1
,
2
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
1
,
3
,
2
>
,
S
<
0
,
1
,
3
,
2
>
,
2
,
2
,
4
,
S
<
1
,
1
,
4
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
2
,
1
,
3
>
,
S
<
0
,
2
,
1
,
3
>
,
3
,
4
,
4
,
7
,
1
,
true
,
true
,
720
>
,
DeviceGemmSplitKXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
128
,
128
,
128
,
4
,
4
,
32
,
32
,
4
,
2
,
S
<
1
,
1
,
4
,
4
>
,
S
<
1
,
4
,
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,
4
,
32
,
1
>
,
S
<
0
,
2
,
1
,
3
>
,
S
<
0
,
2
,
1
,
3
>
,
3
,
4
,
4
,
7
,
1
,
true
,
true
,
720
>
,
DeviceGemmSplitKXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
256
,
128
,
64
,
4
,
4
,
32
,
32
,
2
,
1
,
S
<
1
,
1
,
2
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
1
,
3
,
2
>
,
S
<
0
,
1
,
3
,
2
>
,
2
,
2
,
4
,
S
<
1
,
1
,
1
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
2
,
1
,
3
>
,
S
<
0
,
2
,
1
,
3
>
,
3
,
4
,
4
,
7
,
1
,
true
,
true
,
720
>
,
DeviceGemmSplitKXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
256
,
64
,
128
,
4
,
4
,
32
,
32
,
1
,
2
,
S
<
1
,
1
,
1
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
1
,
3
,
2
>
,
S
<
0
,
1
,
3
,
2
>
,
2
,
1
,
4
,
S
<
1
,
1
,
2
,
4
>
,
S
<
1
,
4
,
64
,
1
>
,
S
<
0
,
2
,
1
,
3
>
,
S
<
0
,
2
,
1
,
3
>
,
3
,
4
,
4
,
7
,
1
,
true
,
true
,
720
>
// clang-format on
>
;
#else
using
device_gemm_xdl_instance_f32_f32_f32_km_nk_mn
=
std
::
tuple
<
// clang-format off
//##########| AData| BData| CData| AccData| ALayout| BLayout| CLayout| Block| MPer| NPer| K0Per| K1| MPer| NPer| MXdl| NXdl| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| ABlockTransfer| BBlockTransfer| BBlockTransfer| BBlockTransfer| BBlockTransfer| BlockTransfer| BBlockTransfer| BBlockTransfer| CThreadTransfer| CThreadTransfer| ABlockLds| BBlockLds|
...
...
@@ -34,6 +53,7 @@ using device_gemm_xdl_instance_f32_f32_f32_km_nk_mn = std::tuple<
DeviceGemmXdl
<
F32
,
F32
,
F32
,
F32
,
Col
,
Col
,
Row
,
256
,
64
,
128
,
4
,
4
,
32
,
32
,
1
,
2
,
S
<
1
,
1
,
4
>
,
S
<
4
,
64
,
1
>
,
S
<
0
,
2
,
1
>
,
S
<
0
,
2
,
1
>
,
1
,
1
,
4
,
S
<
1
,
2
,
4
>
,
S
<
4
,
64
,
1
>
,
S
<
1
,
0
,
2
>
,
S
<
1
,
0
,
2
>
,
2
,
4
,
4
,
7
,
1
,
true
,
true
>
// clang-format on
>
;
#endif
template
<
>
void
add_device_gemm_instance
<
F32
,
F32
,
F32
,
Col
,
Col
,
Row
>
(
...
...
device_operation/device_gemm_xdl_instance_f32_f32_f32_mk_kn_mn.cpp
View file @
0694d6ed
...
...
@@ -4,7 +4,6 @@
#include "device_gemm_splitk_xdl.hpp"
#include "device_gemm_instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
...
...
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