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
c5893dc6
Commit
c5893dc6
authored
Aug 23, 2023
by
Adam Osewski
Browse files
Add pipeline version to GroupedGEMM device op type string.
parent
aeaccf69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
include/ck/tensor_operation/gpu/device/impl/device_grouped_gemm_xdl_splitk_cshuffle.hpp
...u/device/impl/device_grouped_gemm_xdl_splitk_cshuffle.hpp
+2
-1
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
...or_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
+18
-0
No files found.
include/ck/tensor_operation/gpu/device/impl/device_grouped_gemm_xdl_splitk_cshuffle.hpp
View file @
c5893dc6
...
@@ -736,7 +736,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo
...
@@ -736,7 +736,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo
<<
CShuffleMXdlPerWavePerShuffle
<<
", "
<<
CShuffleMXdlPerWavePerShuffle
<<
", "
<<
CShuffleNXdlPerWavePerShuffle
<<
", "
<<
CShuffleNXdlPerWavePerShuffle
<<
", "
<<
ABlockTransferThreadClusterLengths_K0_M_K1
{}
<<
", "
<<
ABlockTransferThreadClusterLengths_K0_M_K1
{}
<<
", "
<<
getGemmSpecializationString
(
GemmSpec
)
<<
getGemmSpecializationString
(
GemmSpec
)
<<
", "
<<
PipelineVer
{}
<<
">"
;
<<
">"
;
// clang-format on
// clang-format on
...
...
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
View file @
c5893dc6
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
#pragma once
#pragma once
#include <iostream>
#include <iostream>
#include <ostream>
#include <string>
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp"
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp"
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v2.hpp"
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v2.hpp"
...
@@ -42,4 +44,20 @@ constexpr auto GridwiseGemmPipeline_Selector()
...
@@ -42,4 +44,20 @@ constexpr auto GridwiseGemmPipeline_Selector()
}
}
}
}
std
::
string
getPipelineVersionString
(
const
PipelineVersion
&
pv
)
{
switch
(
pv
)
{
case
PipelineVersion
::
v1
:
return
"PipelineVersion::v1"
;
case
PipelineVersion
::
v2
:
return
"PipelineVersion::v2"
;
default:
return
"Unrecognized pipeline version!"
;
}
}
}
// namespace ck
}
// namespace ck
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
PipelineVersion
pv
)
{
os
<<
getPipelineVersionString
(
pv
);
return
os
;
}
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