File: 0005-Fix-double-def-in-utility.patch

package info (click to toggle)
hipblas 6.4.3-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 17,920 kB
  • sloc: cpp: 208,774; f90: 49,800; python: 4,680; ansic: 1,142; sh: 831; makefile: 55; xml: 23
file content (45 lines) | stat: -rw-r--r-- 2,081 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Christian Bayle <bayle@debian.org>
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 <typename>
-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<float> = std::numeric_limits<float>::epsilon();
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     hipblas_type_epsilon<double> = std::numeric_limits<double>::epsilon();
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     hipblas_type_epsilon<hipblasComplex> = std::numeric_limits<float>::epsilon();
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     hipblas_type_epsilon<hipblasDoubleComplex> = std::numeric_limits<double>::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
 
 /* =============================================================================================== */