From 89fb435ce271946eba3d50b532e72fe2ca6dc57e Mon Sep 17 00:00:00 2001 From: Yashvardhan Agarwal Date: Fri, 17 Oct 2025 19:49:21 +0300 Subject: [PATCH] fix identity values in Max and AbsMax (#3048) - The identity value method returned the minimum positive number while we need the lowest number for Max and AbsMax operations [ROCm/composable_kernel commit: 889ffc0b1d9a6913ee84f44c08d690a1e4d4828d] --- include/ck_tile/core/utility/reduce_operator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ck_tile/core/utility/reduce_operator.hpp b/include/ck_tile/core/utility/reduce_operator.hpp index a698c91e45..f870bd99d6 100644 --- a/include/ck_tile/core/utility/reduce_operator.hpp +++ b/include/ck_tile/core/utility/reduce_operator.hpp @@ -73,7 +73,7 @@ struct Max std::is_same_v || std::is_same_v>> CK_TILE_HOST_DEVICE static constexpr T GetIdentityValue() { - return numeric::min(); + return numeric::lowest(); }; template || std::is_same_v>> CK_TILE_HOST_DEVICE static constexpr T GetIdentityValue() { - return numeric::min(); + return numeric::lowest(); }; template