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
885ff00a
Commit
885ff00a
authored
Nov 30, 2022
by
Po-Yen, Chen
Browse files
Add enumerator for new pipeline version (optimized pipeline v1)
parent
833a31bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
...or_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
+19
-0
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_selector.hpp
View file @
885ff00a
...
...
@@ -3,6 +3,8 @@
#pragma once
#include <iostream>
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp"
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v2.hpp"
...
...
@@ -11,9 +13,22 @@ namespace ck {
enum
struct
PipelineVersion
{
v1
,
v1_opt0
,
v2
,
};
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
PipelineVersion
version
)
{
switch
(
version
)
{
case
PipelineVersion
::
v1
:
return
stream
<<
"v1"
;
case
PipelineVersion
::
v1_opt0
:
return
stream
<<
"v1_opt0"
;
case
PipelineVersion
::
v2
:
return
stream
<<
"v2"
;
}
__builtin_unreachable
();
}
template
<
PipelineVersion
PipelineVer
,
index_t
NumPrefetch
=
1
,
LoopScheduler
LoopSched
=
LoopScheduler
::
Default
>
...
...
@@ -30,6 +45,10 @@ constexpr auto GridwiseGemmPipeline_Selector()
return
GridwiseGemmPipelineInterwave_v1
<
NumPrefetch
>
{};
}
}
else
if
constexpr
(
PipelineVer
==
PipelineVersion
::
v1_opt0
)
{
return
GridwiseGemmPipeline_v1
<
NumPrefetch
,
0
>
{};
}
else
if
constexpr
(
PipelineVer
==
PipelineVersion
::
v2
)
{
return
GridwiseGemmPipeline_v2
{};
...
...
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