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 Index size);
20 template <
typename DT_>
25 return exec_generic_impl(x_view.
get_r(), y_view.
get_r(), size);
28 template <
typename DT_>
34 return exec_generic<DT_>(x, y, size);
40 return exec_generic<DT_>(x, y, size);
42 XABORTM(
"LAFEM::Arch::MaxRelDiffDense::exec: MKL backend not available!");
49 return exec_generic<DT_>(x, y, size);
51 XABORTM(
"LAFEM::Arch::MaxRelDiffDense::exec: CUDA backend not available!");
56 XABORTM(
"LAFEM::Arch::MaxRelDiffDense::exec: unknown backend!");
63 extern template float MaxRelDiffDense::exec_generic_impl(
const float *
const,
const float *
const,
const Index);
64 extern template double MaxRelDiffDense::exec_generic_impl(
const double *
const,
const double *
const,
const Index);
70#define KERNEL_LAFEM_ARCH_MAX_REL_DIFF_DENSE_HPP 1
71#include <kernel/lafem/arch/max_rel_diff_dense_generic.hpp>
#define XABORTM(msg)
Abortion macro definition with custom message.
static PreferredBackend get_preferred_backend()
get current preferred backend
const T_ * get_r() const
Returns a const typed pointer to the array that grants read access.
std::uint64_t Index
Index data type.