10#include <kernel/backend.hpp>
11#include <kernel/util/memory_arbiter.hpp>
13namespace FEAT::LAFEM::Arch
17 template <
typename ValueType_>
18 static void exec_generic_impl(ValueType_ * r,
const ValueType_ *
const x,
const ValueType_ alpha,
const Index size);
20 template<
typename ValueType_>
25 exec_generic_impl(r_view.
get_w(), x_view.
get_r(), alpha, size);
28 template<
typename ValueType_>
34 exec_generic<ValueType_>(r, x, alpha, size);
40 exec_generic<ValueType_>(r, x, alpha, size);
42 XABORTM(
"LAFEM::Arch::ScaleBlock::exec: MKL backend not available!");
47 XABORTM(
"LAFEM::Arch::ScaleBlock::exec: CUDA backend not available!");
51 XABORTM(
"LAFEM::Arch::ScaleBlock::exec: unknown backend!");
59#define KERNEL_LAFEM_ARCH_SCALE_BLOCK_HPP 1
60#include <kernel/lafem/arch/scale_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.
T_ * get_w()
Returns a typed pointer to the array that grants write (and read) access.
@ overlap
explicitly allow overlapping writes (see Overlapping Memory Views)
@ write
write-only access (see attention note above)
std::uint64_t Index
Index data type.