alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::detail::ParallelForDynamicImpl< TKernel, TSchedule, TSfinae > Struct Template Reference

Helper executor of parallel OpenMP loop with the dynamic schedule. More...

#include <TaskKernelCpuOmp2Blocks.hpp>

+ Inheritance diagram for alpaka::detail::ParallelForDynamicImpl< TKernel, TSchedule, TSfinae >:

Public Member Functions

template<typename TLoopBody , typename TIdx >
ALPAKA_FN_HOST void operator() (TKernel const &, TLoopBody &&loopBody, TIdx const numIterations, TSchedule const &)
 Run parallel OpenMP loop. More...
 

Detailed Description

template<typename TKernel, typename TSchedule, typename TSfinae = void>
struct alpaka::detail::ParallelForDynamicImpl< TKernel, TSchedule, TSfinae >

Helper executor of parallel OpenMP loop with the dynamic schedule.

Generel implementation is for TKernel types without member ompScheduleChunkSize.

Template Parameters
TKernelThe kernel type.
TScheduleThe schedule type (not necessarily omp::Schedule).

Definition at line 301 of file TaskKernelCpuOmp2Blocks.hpp.

Member Function Documentation

◆ operator()()

template<typename TKernel , typename TSchedule , typename TSfinae = void>
template<typename TLoopBody , typename TIdx >
ALPAKA_FN_HOST void alpaka::detail::ParallelForDynamicImpl< TKernel, TSchedule, TSfinae >::operator() ( TKernel const &  ,
TLoopBody &&  loopBody,
TIdx const  numIterations,
TSchedule const &   
)
inline

Run parallel OpenMP loop.

Template Parameters
TLoopBodyThe loop body functor type.
TIdxThe index type.
Parameters
loopBodyThe loop body functor instance, takes iteration index as input.
numIterationsThe number of loop iterations.

Definition at line 311 of file TaskKernelCpuOmp2Blocks.hpp.


The documentation for this struct was generated from the following file: