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 boff,
const Index nidx,
const IT_* idx,
const DT_* buf, DT_* vec,
const DT_ alpha);
20 template<
typename DT_,
typename IT_>
21 static void exec_cuda_impl(
const Index boff,
const Index nidx,
const IT_* idx,
const DT_* buf, DT_* vec,
const DT_ alpha);
23 template<
typename DT_,
typename IT_>
29 return exec_generic_impl(boff, nidx, i_view.
get_r(), b_view.
get_r(), x_view.
get_w(), alpha);
32 template<
typename DT_,
typename IT_>
38 return exec_cuda_impl(boff, nidx, i_view.
get_r(), b_view.
get_r(), x_view.
get_w(), alpha);
41 template<
typename DT_,
typename IT_>
47 exec_generic<DT_, IT_>(boff, nidx, idx, buf, vec, alpha);
53 exec_generic<DT_, IT_>(boff, nidx, idx, buf, vec, alpha);
55 XABORTM(
"LAFEM::Arch::MirrorDenseScatter::exec: MKL backend not available!");
61 exec_cuda<DT_, IT_>(boff, nidx, idx, buf, vec, alpha);
63 XABORTM(
"LAFEM::Arch::MirrorDenseScatter::exec: CUDA backend not available!");
68 XABORTM(
"LAFEM::Arch::MirrorDenseScatter::exec: unknown backend!");
76#define KERNEL_LAFEM_ARCH_MIRROR_DENSE_SCATTER_HPP 1
77#include <kernel/lafem/arch/mirror_dense_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
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.
@ read_write
read-write access
std::uint64_t Index
Index data type.