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
|
From: Christian Bayle <bayle@debian.org>
Date: Fri, 3 Oct 2025 20:12:13 +0200
Subject: Fix double def in hipblas_arguments
Forwarded: not-needed
---
clients/include/hipblas_arguments.hpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/clients/include/hipblas_arguments.hpp b/clients/include/hipblas_arguments.hpp
index 06cf205..00fdb03 100644
--- a/clients/include/hipblas_arguments.hpp
+++ b/clients/include/hipblas_arguments.hpp
@@ -361,7 +361,7 @@ namespace ArgumentsHelper
// clang-format off
#define APPLY(NAME) \
template <> \
- HIPBLAS_CLANG_STATIC constexpr auto \
+ HIPBLAS_CLANG_STATIC inline constexpr auto \
apply<e_##NAME == e_alpha ? hipblas_argument(-1) \
: e_##NAME == e_beta ? hipblas_argument(-2) \
: e_##NAME == e_a_type ? hipblas_argument(-3) \
@@ -377,45 +377,45 @@ namespace ArgumentsHelper
// Specialization for e_alpha
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_alpha> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_alpha> =
[](auto&& func, const Arguments& arg, auto T) {
func("alpha", arg.get_alpha<decltype(T)>());
};
// Specialization for e_beta
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_beta> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_beta> =
[](auto&& func, const Arguments& arg, auto T) {
func("beta", arg.get_beta<decltype(T)>());
};
// Specialization for datatypes
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_a_type> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_a_type> =
[](auto&& func, const Arguments& arg, auto T) {
func("a_type", hipblas_datatype2string(arg.a_type));
};
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_b_type> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_b_type> =
[](auto&& func, const Arguments& arg, auto T) {
func("b_type", hipblas_datatype2string(arg.b_type));
};
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_c_type> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_c_type> =
[](auto&& func, const Arguments& arg, auto T) {
func("c_type", hipblas_datatype2string(arg.c_type));
};
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_d_type> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_d_type> =
[](auto&& func, const Arguments& arg, auto T) {
func("d_type", hipblas_datatype2string(arg.d_type));
};
template <>
- HIPBLAS_CLANG_STATIC constexpr auto apply<e_compute_type> =
+ HIPBLAS_CLANG_STATIC inline constexpr auto apply<e_compute_type> =
[](auto&& func, const Arguments& arg, auto T) {
func("compute_type", hipblas_datatype2string(arg.compute_type));
};
|