From 65835c0bbb90117c8d9c6bc3fff23458abcbe043 Mon Sep 17 00:00:00 2001 From: carlushuang Date: Tue, 10 Jun 2025 10:40:54 +0800 Subject: [PATCH] MUST USE INLINE FOR ANY NON TEMPLATE FUNCTION IN HEADER!!! (#2305) --- include/ck_tile/host/check_err.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ck_tile/host/check_err.hpp b/include/ck_tile/host/check_err.hpp index 90dec42ed1..454f22e007 100644 --- a/include/ck_tile/host/check_err.hpp +++ b/include/ck_tile/host/check_err.hpp @@ -46,7 +46,7 @@ using I32 = int32_t; * @return Relative error threshold based on data type characteristics */ template -double get_relative_threshold(const int number_of_accumulations = 1) +CK_TILE_HOST double get_relative_threshold(const int number_of_accumulations = 1) { static_assert( @@ -106,7 +106,7 @@ double get_relative_threshold(const int number_of_accumulations = 1) * @return Absolute error threshold based on data type characteristics and maximum value */ template -double get_absolute_threshold(const double max_possible_num, const int number_of_accumulations = 1) +CK_TILE_HOST double get_absolute_threshold(const double max_possible_num, const int number_of_accumulations = 1) { static_assert( @@ -194,7 +194,7 @@ std::ostream& operator<<(std::ostream& os, const std::vector& v) * @return True if sizes mismatch, false otherwise */ template -bool check_size_mismatch(const Range& out, +CK_TILE_HOST bool check_size_mismatch(const Range& out, const RefRange& ref, const std::string& msg = "Error: Incorrect results!") { @@ -216,7 +216,7 @@ bool check_size_mismatch(const Range& out, * @param max_err Maximum error value encountered * @param total_size Total number of elements compared */ -void report_error_stats(int err_count, double max_err, std::size_t total_size) +CK_TILE_HOST void report_error_stats(int err_count, double max_err, std::size_t total_size) { const float error_percent = static_cast(err_count) / static_cast(total_size) * 100.f;