From dbf42ae1c71216300ecc92df120296879fcfee2e Mon Sep 17 00:00:00 2001 From: Christoph Diegelmann Date: Sat, 10 Aug 2024 10:19:24 +0200 Subject: [PATCH] Fixing std::numeric_limits::digits to include the implicit one --- include/cutlass/half.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cutlass/half.h b/include/cutlass/half.h index e5dcd71eb9..a41ddcfb2e 100644 --- a/include/cutlass/half.h +++ b/include/cutlass/half.h @@ -599,7 +599,7 @@ struct numeric_limits { static bool const is_iec559 = true; static bool const is_bounded = true; static bool const is_modulo = false; - static int const digits = 10; + static int const digits = 11; /// Least positive value static cutlass::half_t min() { return cutlass::half_t::bitcast(0x0001); } @@ -658,7 +658,7 @@ struct numeric_limits { static bool const is_iec559 = true; static bool const is_bounded = true; static bool const is_modulo = false; - static int const digits = 10; + static int const digits = 11; /// Least positive value CUTLASS_HOST_DEVICE