1#ifndef CUDIFY_ALPAKA_HARDWARE_HPP_
2#define CUDIFY_ALPAKA_HARDWARE_HPP_
6#define ALPAKA_ACC_CPU_B_SEQ_T_FIBERS_ENABLED
14#include "util/cudify/cudify_hardware_cpu.hpp"
15#include <alpaka/alpaka.hpp>
18using Dim_alpa = alpaka::DimInt<3>;
19using Idx_alpa = std::size_t;
21#ifdef ALPAKA_ACC_CPU_B_SEQ_T_FIBERS_ENABLED
22using Acc_alpa = alpaka::AccCpuFibers<Dim_alpa, Idx_alpa>;
23#elif defined(ALPAKA_ACC_ANY_BT_OMP5_ENABLED)
24using Acc_alpa = alpaka::AccOmp5<Dim_alpa, Idx_alpa>;
27using QueueProperty_alpa = alpaka::Blocking;
28using Queue_alpa = alpaka::Queue<Acc_alpa, QueueProperty_alpa>;
30using Vec_alpa = alpaka::Vec<Dim_alpa, Idx_alpa>;
32using WorkDiv_alpa = alpaka::WorkDivMembers<Dim_alpa, Idx_alpa>;
34typedef decltype(alpaka::getDevByIdx<Acc_alpa>(0u)) AccType_alpa;
38 AccType_alpa * devAcc;
41 const Acc_alpa * accKer;
42 bool initialized =
false;