From f0985f0a132671a1caaea92810c9f30dcf062bde Mon Sep 17 00:00:00 2001 From: "Po-Yen, Chen" Date: Thu, 7 Jul 2022 11:10:39 +0800 Subject: [PATCH] Add static_assert() to check pipeline type requirements --- .../ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp b/include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp index 42a56e2a6b..f153a32a75 100644 --- a/include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp +++ b/include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp @@ -357,10 +357,13 @@ constexpr auto GridwiseGemmPipeline_v1_Selector() { if constexpr(LoopSched == LoopScheduler::Default) { + static_assert(std::is_default_constructible_v>); return GridwiseGemmPipeline_v1{}; } else if constexpr(LoopSched == LoopScheduler::Interwave) { + static_assert( + std::is_default_constructible_v>); return GridwiseGemmPipelineInterwave_v1{}; } }