10#include <kernel/backend.hpp>
11#include <kernel/util/memory_arbiter.hpp>
13namespace FEAT::LAFEM::Arch
17 template <
typename ValueType_>
18 static ValueType_ exec_generic_impl(
const ValueType_ *
const x,
const Index size);
20 template <
typename ValueType_>
24 return exec_generic_impl(x_view.
get_r(), size);
27 template <
typename ValueType_>
33 return exec_generic<ValueType_>(x, size);
39 return exec_generic<ValueType_>(x, size);
41 XABORTM(
"LAFEM::Arch::Norm2Block::exec: MKL backend not available!");
46 XABORTM(
"LAFEM::Arch::Norm2Block::exec: CUDA backend not available!");
50 XABORTM(
"LAFEM::Arch::Norm2Block::exec: unknown backend!");
58#define KERNEL_LAFEM_ARCH_NORM2_BLOCK_HPP 1
59#include <kernel/lafem/arch/norm2_block_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.