10#include <kernel/backend.hpp>
11#include <kernel/util/memory_arbiter.hpp>
13namespace FEAT::LAFEM::Arch
17 template<
typename DT_,
typename IT_>
18 static void exec_generic_impl(
const Index bs,
const Index boff,
const Index nidx,
const IT_* idx,
const DT_* buf,
const Index nvec, DT_* vval,
const IT_* vidx,
const DT_ alpha);
20 template<
typename DT_,
typename IT_,
int block_size_>
27 return exec_generic_impl(
Index(block_size_), boff, nidx, i_view.
get_r(), b_view.
get_r(), nvec, x_view.
get_w(), vi_view.
get_r(), alpha);
30 template<
typename DT_,
typename IT_,
int block_size_>
36 return exec_generic<DT_, IT_, block_size_>(boff, nidx, idx, buf, nvec, vec, vi, alpha);
42 return exec_generic<DT_, IT_, block_size_>(boff, nidx, idx, buf, nvec, vec, vi, alpha);
44 XABORTM(
"LAFEM::Arch::MirrorSparseBlockScatter::exec: MKL backend not available!");
49 XABORTM(
"LAFEM::Arch::MirrorSparseBlockScatter::exec: CUDA backend not available!");
53 XABORTM(
"LAFEM::Arch::MirrorSparseBlockScatter::exec: unknown backend!");
61#define KERNEL_LAFEM_ARCH_MIRROR_SPARSE_BLOCK_SCATTER_HPP 1
62#include <kernel/lafem/arch/mirror_sparse_block_scatter_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
View view(Location mem_loc, Access access)
Maps a raw view to a memory block.
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.
@ write
write-only access (see attention note above)
std::uint64_t Index
Index data type.