From 30a968687701c5332fb50860cf6522a33f42229a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Pietil=C3=A4?= <> Date: Mon, 29 Dec 2025 04:56:22 -0500 Subject: [PATCH] Update compiletime diagnostics to use the size type. --- .../builder/conv_algorithm_diagnostics.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/experimental/builder/include/ck_tile/builder/conv_algorithm_diagnostics.hpp b/experimental/builder/include/ck_tile/builder/conv_algorithm_diagnostics.hpp index 6528e0fd44..2340e19e61 100644 --- a/experimental/builder/include/ck_tile/builder/conv_algorithm_diagnostics.hpp +++ b/experimental/builder/include/ck_tile/builder/conv_algorithm_diagnostics.hpp @@ -67,7 +67,7 @@ consteval auto diagnose_thread_block_descriptor() -> std::string { if constexpr (requires(TB t) { t.block_size; }) { using BlockSizeType = decltype(std::declval().block_size); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → thread_block.block_size: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -76,7 +76,7 @@ consteval auto diagnose_thread_block_descriptor() -> std::string { if constexpr (requires(TB t) { t.tile_size.m; }) { using TileMType = decltype(std::declval().tile_size.m); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → thread_block.tile_size.m: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -85,7 +85,7 @@ consteval auto diagnose_thread_block_descriptor() -> std::string { if constexpr (requires(TB t) { t.tile_size.n; }) { using TileNType = decltype(std::declval().tile_size.n); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → thread_block.tile_size.n: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -94,7 +94,7 @@ consteval auto diagnose_thread_block_descriptor() -> std::string { if constexpr (requires(TB t) { t.tile_size.k; }) { using TileKType = decltype(std::declval().tile_size.k); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → thread_block.tile_size.k: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -112,7 +112,7 @@ consteval auto diagnose_xdl_params() -> std::string { if constexpr (requires(XdlParams t) { t.m_per_xdl; }) { using MPerXdlType = decltype(std::declval().m_per_xdl); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → xdl_params.m_per_xdl: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -121,7 +121,7 @@ consteval auto diagnose_xdl_params() -> std::string { if constexpr (requires(XdlParams t) { t.n_per_xdl; }) { using NPerXdlType = decltype(std::declval().n_per_xdl); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → xdl_params.n_per_xdl: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -130,7 +130,7 @@ consteval auto diagnose_xdl_params() -> std::string { if constexpr (requires(XdlParams t) { t.m_xdl_per_wave; }) { using MXdlPerWaveType = decltype(std::declval().m_xdl_per_wave); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → xdl_params.m_xdl_per_wave: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else { @@ -139,7 +139,7 @@ consteval auto diagnose_xdl_params() -> std::string { if constexpr (requires(XdlParams t) { t.n_xdl_per_wave; }) { using NXdlPerWaveType = decltype(std::declval().n_xdl_per_wave); - constexpr bool convertible = std::convertible_to; + constexpr bool convertible = SizeType; msg += " → xdl_params.n_xdl_per_wave: " + std::string(CHECK_MARK(convertible)) + (convertible ? "" : std::string(get_type_info())) + "\n"; } else {