10#include <kernel/backend.hpp>
11#include <kernel/util/memory_arbiter.hpp>
13namespace FEAT::LAFEM::Arch
17 template <
typename DT_>
18 static DT_ exec_generic_impl(
const DT_ *
const x,
const DT_ *
const y,
const DT_ *
const z,
const Index size);
20 template <
typename DT_>
21 static DT_ exec_cuda_impl(
const DT_ *
const x,
const DT_ *
const y,
const DT_ *
const z,
const Index size);
23 template <
typename DT_>
29 return exec_generic_impl(x_view.
get_r(), y_view.
get_r(), z_view.
get_r(), size);
32 template <
typename DT_>
38 return exec_cuda_impl(x_view.
get_r(), y_view.
get_r(), z_view.
get_r(), size);
41 template <
typename DT_>
47 return exec_generic<DT_>(x, y, z, size);
53 return exec_generic<DT_>(x, y, z, size);
55 XABORTM(
"LAFEM::Arch::TripleDotProductDense::exec: MKL backend not available!");
61 return exec_cuda<DT_>(x, y, z, size);
63 XABORTM(
"LAFEM::Arch::TripleDotProductDense::exec: CUDA backend not available!");
68 XABORTM(
"LAFEM::Arch::TripleDotProductDense::exec: unknown backend!");
75 extern template float TripleDotProductDense::exec_generic_impl(
const float *
const,
const float *
const,
const float *
const,
const Index);
76 extern template double TripleDotProductDense::exec_generic_impl(
const double *
const,
const double *
const,
const double *
const,
const Index);
81#define KERNEL_LAFEM_ARCH_TRIPLE_DOT_PRODUCT_DENSE_HPP 1
82#include <kernel/lafem/arch/triple_dot_product_dense_generic.hpp>
#define XABORTM(msg)
Abortion macro definition with custom message.
static PreferredBackend get_preferred_backend()
get current preferred backend
static void warn_missing(const char *operation, PreferredBackend preferred_backend, PreferredBackend fallback_backend=PreferredBackend::generic)
issues a warning about unsupported backend usage
const T_ * get_r() const
Returns a const typed pointer to the array that grants read access.
std::uint64_t Index
Index data type.