From 3bbad88a9734758e0f87cdf451323f098b392b15 Mon Sep 17 00:00:00 2001 From: Gino Lu Date: Thu, 14 Aug 2025 15:12:31 +0800 Subject: [PATCH] fix wrong nan producion. (#2640) Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com> [ROCm/composable_kernel commit: e5623d3825a10c6f50af493cf12bda7da89f94c7] --- include/ck_tile/core/numeric/e8m0.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_tile/core/numeric/e8m0.hpp b/include/ck_tile/core/numeric/e8m0.hpp index ea94880f27..ba122b7f66 100644 --- a/include/ck_tile/core/numeric/e8m0.hpp +++ b/include/ck_tile/core/numeric/e8m0.hpp @@ -87,7 +87,7 @@ CK_TILE_HOST_DEVICE constexpr e8m0_bexp_t::operator float() const using traits = numeric_traits; if(data == numeric::binary_nan) { - return traits::NaN; + return std::numeric_limits::signaling_NaN(); } else if(data == 0) {