mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-05 20:55:59 +00:00
Add static_assert() to check pipeline type requirements
This commit is contained in:
@@ -357,10 +357,13 @@ constexpr auto GridwiseGemmPipeline_v1_Selector()
|
||||
{
|
||||
if constexpr(LoopSched == LoopScheduler::Default)
|
||||
{
|
||||
static_assert(std::is_default_constructible_v<GridwiseGemmPipeline_v1<NumPrefetch>>);
|
||||
return GridwiseGemmPipeline_v1<NumPrefetch>{};
|
||||
}
|
||||
else if constexpr(LoopSched == LoopScheduler::Interwave)
|
||||
{
|
||||
static_assert(
|
||||
std::is_default_constructible_v<GridwiseGemmPipelineInterwave_v1<NumPrefetch>>);
|
||||
return GridwiseGemmPipelineInterwave_v1<NumPrefetch>{};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user