From: Christian Bayle Date: Fri, 3 Oct 2025 16:59:59 +0200 Subject: Fix double def in utility Forwarded: not-needed --- clients/include/utility.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clients/include/utility.h b/clients/include/utility.h index 0f3ff7b..6d0e3e2 100644 --- a/clients/include/utility.h +++ b/clients/include/utility.h @@ -75,24 +75,24 @@ /* =============================================================================================== */ /* Epsilon helpers for near checks. */ template -HIPBLAS_CLANG_STATIC constexpr double hipblas_type_epsilon = 0; +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon = 0; template <> -HIPBLAS_CLANG_STATIC constexpr double +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon = std::numeric_limits::epsilon(); template <> -HIPBLAS_CLANG_STATIC constexpr double +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon = std::numeric_limits::epsilon(); template <> -HIPBLAS_CLANG_STATIC constexpr double +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon = std::numeric_limits::epsilon(); template <> -HIPBLAS_CLANG_STATIC constexpr double +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon = std::numeric_limits::epsilon(); template <> -HIPBLAS_CLANG_STATIC constexpr double hipblas_type_epsilon< +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon< hipblasHalf> = 0.0009765625; // in fp16 diff between 0x3C00 (1.0) and fp16 0x3C01 template <> -HIPBLAS_CLANG_STATIC constexpr double hipblas_type_epsilon< +HIPBLAS_CLANG_STATIC inline constexpr double hipblas_type_epsilon< hipblasBfloat16> = 0.0078125; // in bf16 diff between 0x3F80 (1.0) and bf16 0x3F81 in double precision /* =============================================================================================== */