alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Representation of OpenMP schedule information: kind and chunk size. This class can be used regardless of whether OpenMP is enabled. More...
#include <OmpSchedule.hpp>
Public Types | |
enum | Kind { NoSchedule , Static = 1u , Dynamic = 2u , Guided = 3u , Auto = 4u , Runtime = 5u } |
Schedule kinds corresponding to arguments of OpenMP schedule clause. More... | |
Public Member Functions | |
constexpr ALPAKA_FN_HOST | Schedule (Kind myKind=NoSchedule, int myChunkSize=0) |
Create a schedule with the given kind and chunk size. More... | |
Public Attributes | |
int | chunkSize |
Chunk size. Same as in OpenMP, value 0 corresponds to default chunk size. Using int and not a fixed-width type to match OpenMP API. More... | |
Kind | kind |
Schedule kind. More... | |
Representation of OpenMP schedule information: kind and chunk size. This class can be used regardless of whether OpenMP is enabled.
Definition at line 19 of file OmpSchedule.hpp.
Schedule kinds corresponding to arguments of OpenMP schedule clause.
Kinds also present in omp_sched_t enum have the same integer values. It is enum, not enum class, for shorter usage as omp::Schedule::[kind] and to keep interface of 0.6.0.
Enumerator | |
---|---|
NoSchedule | |
Static | |
Dynamic | |
Guided | |
Auto | |
Runtime |
Definition at line 25 of file OmpSchedule.hpp.
|
inlineconstexpr |
Create a schedule with the given kind and chunk size.
Definition at line 47 of file OmpSchedule.hpp.
int alpaka::omp::Schedule::chunkSize |
Chunk size. Same as in OpenMP, value 0 corresponds to default chunk size. Using int and not a fixed-width type to match OpenMP API.
Definition at line 44 of file OmpSchedule.hpp.
Kind alpaka::omp::Schedule::kind |
Schedule kind.
Definition at line 40 of file OmpSchedule.hpp.