mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-07-10 00:57:19 +00:00
Use SFINAE instead of std::conditional_t in unit tests
This commit is contained in:
@@ -83,17 +83,18 @@ class TestCkTileGemmPipeline : public ::testing::Test
|
||||
static constexpr auto Scheduler = std::tuple_element_t<7, Tuple>::value;
|
||||
static constexpr auto PipelineType = std::tuple_element_t<8, Tuple>::value;
|
||||
|
||||
static constexpr bool Persistent = std::conditional_t<PipelineType == GemmPipelineType::CompV3,
|
||||
std::tuple_element_t<9, Tuple>,
|
||||
std::false_type>::value;
|
||||
|
||||
static constexpr bool SkipALds = std::conditional_t<PipelineType == GemmPipelineType::Mem,
|
||||
std::tuple_element_t<9, Tuple>,
|
||||
std::false_type>::value;
|
||||
|
||||
static constexpr bool SkipBLds = std::conditional_t<PipelineType == GemmPipelineType::Mem,
|
||||
std::tuple_element_t<10, Tuple>,
|
||||
std::false_type>::value;
|
||||
static constexpr bool Persistent =
|
||||
(PipelineType == GemmPipelineType::CompV3 && std::tuple_size_v<Tuple> > 9)
|
||||
? std::tuple_element_t<9, Tuple>::value
|
||||
: std::false_type::value;
|
||||
static constexpr bool SkipALds =
|
||||
(PipelineType == GemmPipelineType::Mem && std::tuple_size_v<Tuple> > 9)
|
||||
? std::tuple_element_t<9, Tuple>::value
|
||||
: std::false_type::value;
|
||||
static constexpr bool SkipBLds =
|
||||
(PipelineType == GemmPipelineType::Mem && std::tuple_size_v<Tuple> > 10)
|
||||
? std::tuple_element_t<10, Tuple>::value
|
||||
: std::false_type::value;
|
||||
|
||||
using DsLayout = ck_tile::tuple<>;
|
||||
using DsDataType = ck_tile::tuple<>;
|
||||
|
||||
Reference in New Issue
Block a user