File: 0004-Fix-double-def-in-type_utils.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 (26 lines) | stat: -rw-r--r-- 917 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
From: Christian Bayle <bayle@debian.org>
Date: Fri, 3 Oct 2025 16:57:37 +0200
Subject: Fix double def in type_utils

Forwarded: not-needed
---
 clients/include/type_utils.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/include/type_utils.h b/clients/include/type_utils.h
index c0f11cf..c761e25 100644
--- a/clients/include/type_utils.h
+++ b/clients/include/type_utils.h
@@ -194,10 +194,10 @@ template <typename T>
 static constexpr bool is_complex = false;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr bool is_complex<hipblasComplex> = true;
+HIPBLAS_CLANG_STATIC inline constexpr bool is_complex<hipblasComplex> = true;
 
 template <>
-HIPBLAS_CLANG_STATIC constexpr bool is_complex<hipblasDoubleComplex> = true;
+HIPBLAS_CLANG_STATIC inline constexpr bool is_complex<hipblasDoubleComplex> = true;
 
 // Get base types from complex types.
 template <typename T, typename = void>