File: 0006-Fix-double-def-near.patch

package info (click to toggle)
hipblas 6.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 26,548 kB
  • sloc: cpp: 209,856; f90: 49,800; python: 4,680; ansic: 1,141; sh: 799; makefile: 50; xml: 23
file content (77 lines) | stat: -rw-r--r-- 3,051 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
From: Christian Bayle <bayle@debian.org>
Date: Fri, 3 Oct 2025 17:45:54 +0200
Subject: Fix double def near

Forwarded: not-needed
---
 clients/include/near.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/clients/include/near.h b/clients/include/near.h
index 38ad791..0a2b6f2 100644
--- a/clients/include/near.h
+++ b/clients/include/near.h
@@ -81,51 +81,51 @@ void near_check_general(int64_t        M,
 
 // currently only used for half-precision comparisons in dot_ex tests
 template <class T>
-HIPBLAS_CLANG_STATIC constexpr double error_tolerance = 0.0;
+HIPBLAS_CLANG_STATIC inline constexpr double error_tolerance = 0.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double error_tolerance<hipblasBfloat16> = 1 / 100.0;
+HIPBLAS_CLANG_STATIC inline constexpr double error_tolerance<hipblasBfloat16> = 1 / 100.0;
 
 // 2 ^ -14, smallest positive normal number for IEEE16
 template <>
-HIPBLAS_CLANG_STATIC constexpr double error_tolerance<hipblasHalf> = 0.000061035;
+HIPBLAS_CLANG_STATIC inline constexpr double error_tolerance<hipblasHalf> = 0.000061035;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double error_tolerance<hipblasComplex> = 1 / 10000.0;
+HIPBLAS_CLANG_STATIC inline constexpr double error_tolerance<hipblasComplex> = 1 / 10000.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double error_tolerance<hipblasDoubleComplex> = 1 / 1000000.0;
+HIPBLAS_CLANG_STATIC inline constexpr double error_tolerance<hipblasDoubleComplex> = 1 / 1000000.0;
 
 // currently only used for gemm_ex
 template <class Tc, class Ti, class To>
 static constexpr double sum_error_tolerance_for_gfx11 = 0.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<float, hipblasBfloat16, float> = 1 / 10.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<float, hipblasBfloat16, hipblasBfloat16> = 1 / 10.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<float, hipblasHalf, float> = 1 / 100.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<float, hipblasHalf, hipblasHalf> = 1 / 100.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<hipblasHalf, hipblasHalf, hipblasHalf> = 1 / 100.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<hipblasComplex, hipblasComplex, hipblasComplex> = 1 / 10000.0;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr double
+HIPBLAS_CLANG_STATIC inline constexpr double
     sum_error_tolerance_for_gfx11<hipblasDoubleComplex,
                                   hipblasDoubleComplex,
                                   hipblasDoubleComplex> = 1 / 1000000.0;