alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Executor of parallel OpenMP loop. More...
#include <TaskKernelCpuOmp2Blocks.hpp>
Public Member Functions | |
template<typename TLoopBody , typename TIdx > | |
ALPAKA_FN_HOST void | operator() (TKernel const &kernel, TLoopBody &&loopBody, TIdx const numIterations, TSchedule const &schedule) |
Run parallel OpenMP loop. More... | |
Executor of parallel OpenMP loop.
Performs dispatch based on schedule kind and forwards to the corresponding ParallelForImpl. Specialization for kernels with ompScheduleKind member, compile-time dispatch.
TKernel | The kernel type. |
TSchedule | The schedule type (not necessarily omp::Schedule). |
Definition at line 731 of file TaskKernelCpuOmp2Blocks.hpp.
|
inline |
Run parallel OpenMP loop.
TLoopBody | The loop body functor type. |
TIdx | The index type. |
kernel | The kernel instance reference |
loopBody | The loop body functor instance, takes iteration index as input. |
numIterations | The number of loop iterations. |
schedule | The schedule object. |
Definition at line 743 of file TaskKernelCpuOmp2Blocks.hpp.