41 #ifdef ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED
44 # error If ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED is set, the compiler has to support OpenMP 2.0 or higher!
49 template<
typename TDim,
typename TIdx,
typename TKernelFnObj,
typename... TArgs>
57 template<
typename TDim,
typename TIdx>
72 # ifdef ALPAKA_DISABLE_VENDOR_RNG
81 sizeof(TIdx) >=
sizeof(
int),
82 "Index type is not supported, consider using int or a larger type.");
86 template<
typename TDim2,
typename TIdx2,
typename TKernelFnObj,
typename... TArgs>
87 friend class ::alpaka::TaskKernelCpuOmp2Blocks;
95 template<
typename TWorkDiv>
98 , gb::
IdxGbRef<TDim, TIdx>(m_gridBlockIdx)
101 , m_gridBlockIdx(
Vec<TDim, TIdx>::zeros())
113 template<
typename TDim,
typename TIdx>
120 template<
typename TDim,
typename TIdx>
126 static_cast<TIdx
>(1),
134 static_cast<TIdx
>(1),
147 template<
typename TDim,
typename TIdx>
152 return "AccCpuOmp2Blocks<" + std::to_string(TDim::value) +
"," + core::demangled<TIdx> +
">";
157 template<
typename TDim,
typename TIdx>
164 template<
typename TDim,
typename TIdx>
171 template<
typename TDim,
typename TIdx,
typename TWorkDiv,
typename TKernelFnObj,
typename... TArgs>
175 TWorkDiv
const& workDiv,
176 TKernelFnObj
const& kernelFnObj,
182 std::forward<TArgs>(args)...);
187 template<
typename TDim,
typename TIdx>
194 template<
typename TDim,
typename TIdx>
200 template<
typename TDim,
typename TIdx>
206 template<
typename TDim,
typename TIdx>
The CPU OpenMP 2.0 block accelerator.
AccCpuOmp2Blocks(AccCpuOmp2Blocks const &)=delete
auto operator=(AccCpuOmp2Blocks const &) -> AccCpuOmp2Blocks &=delete
AccCpuOmp2Blocks(AccCpuOmp2Blocks &&)=delete
auto operator=(AccCpuOmp2Blocks &&) -> AccCpuOmp2Blocks &=delete
Dynamic block shared memory provider using fixed-size member array to allocate memory on the stack or...
static constexpr auto staticAllocBytes() -> std::uint32_t
auto staticMemBegin() const -> uint8_t *
auto staticMemCapacity() const -> std::uint32_t
Static block shared memory provider using a pointer to externally allocated fixed-size memory,...
The no op block synchronization.
The CPU OpenMP 2.0 block memory fence.
The CPU OpenMP 2.0 block accelerator execution task.
ALPAKA_NO_HOST_ACC_WARNING static constexpr ALPAKA_FN_HOST_ACC auto ones() -> Vec< TDim, TVal >
One value constructor.
A basic class holding the work division as grid block extent, block thread and thread element extent.
A zero block thread index provider.
A IdxGbRef grid block index.
IdxGbRef(Vec< TDim, TIdx > const &gridBlockIdx)
The standard library math trait specializations.
"Tiny" state mersenne twister implementation
The single-threaded warp to emulate it on CPUs.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto max(T const &max_ctx, Tx const &x, Ty const &y)
Returns the larger of two arguments. NaNs are treated as missing data (between a NaN and a numeric va...
The alpaka accelerator library.
ALPAKA_FN_HOST auto getMemBytes(TDev const &dev) -> std::size_t
The acceleration properties on a device.
Tag used in class inheritance hierarchies that describes that a specific concept (TConcept) is implem...
The accelerator type trait.
static ALPAKA_FN_HOST auto createTaskKernel(TWorkDiv const &workDiv, TKernelFnObj const &kernelFnObj, TArgs &&... args)
The kernel execution task creation trait.
The dimension getter type trait.
static ALPAKA_FN_HOST auto getAccDevProps(DevCpu const &dev) -> alpaka::AccDevProps< TDim, TIdx >
The device properties get trait.
static ALPAKA_FN_HOST auto getAccName() -> std::string
The accelerator name trait.