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,
const bool min_,
const bool abs_);
20 template <
typename ValueType_>
21 static ValueType_ exec_generic(
const Memory::Arbiter& x,
const Index size,
const bool min_,
const bool abs_)
24 return exec_generic_impl(x_view.
get_r(), size, min_, abs_);
27 template <
typename ValueType_>
28 static ValueType_ exec(
const Memory::Arbiter& x,
const Index size,
const bool min_,
const bool abs_)
33 return exec_generic<ValueType_>(x, size, min_, abs_);
39 return exec_generic<ValueType_>(x, size, min_, abs_);
41 XABORTM(
"LAFEM::Arch::MinMaxValueBlock::exec: MKL backend not available!");
46 XABORTM(
"LAFEM::Arch::MinMaxValueBlock::exec: CUDA backend not available!");
50 XABORTM(
"LAFEM::Arch::MinMaxValueBlock::exec: unknown backend!");
58#define KERNEL_LAFEM_ARCH_MIN_MAX_VALUE_BLOCK_HPP 1
59#include <kernel/lafem/arch/min_max_value_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.