10#include <kernel/backend.hpp>
11#include <kernel/util/memory_arbiter.hpp>
13namespace FEAT::LAFEM::Arch
18 template <
typename ValueType_>
19 static ValueType_ exec_generic_impl(
const ValueType_ *
const x,
const ValueType_ *
const y,
const Index size);
21 template <
typename ValueType_>
26 return exec_generic_impl(x_view.
get_r(), y_view.
get_r(), size);
29 template <
typename ValueType_>
35 return exec_generic<ValueType_>(x, y, size);
41 return exec_generic<ValueType_>(x, y, size);
43 XABORTM(
"LAFEM::Arch::DotProductBlock::exec: MKL backend not available!");
48 XABORTM(
"LAFEM::Arch::DotProductBlock::exec: CUDA backend not available!");
52 XABORTM(
"LAFEM::Arch::DotProductBlock::exec: unknown backend!");
60#define KERNEL_LAFEM_ARCH_DOT_PRODUCT_BLOCK_HPP 1
61#include <kernel/lafem/arch/dot_product_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.
for all 0 <= k < blocksize: r[k] <- sum_{0 <= i < n} x[i][k] * y[i][k]