alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::omp Namespace Reference

Classes

struct  Schedule
 Representation of OpenMP schedule information: kind and chunk size. This class can be used regardless of whether OpenMP is enabled. More...
 

Functions

ALPAKA_FN_HOST auto getSchedule ()
 Get the OpenMP schedule that is applied when the runtime schedule is used. More...
 
ALPAKA_FN_HOST void setSchedule (Schedule schedule)
 Set the OpenMP schedule that is applied when the runtime schedule is used for future parallel regions. More...
 

Function Documentation

◆ getSchedule()

ALPAKA_FN_HOST auto alpaka::omp::getSchedule ( )
inline

Get the OpenMP schedule that is applied when the runtime schedule is used.

For OpenMP >= 3.0 returns the value of the internal control variable run-sched-var. Without OpenMP or with OpenMP < 3.0, returns the default schedule.

Returns
Schedule object.

Definition at line 60 of file OmpSchedule.hpp.

◆ setSchedule()

ALPAKA_FN_HOST void alpaka::omp::setSchedule ( Schedule  schedule)
inline

Set the OpenMP schedule that is applied when the runtime schedule is used for future parallel regions.

For OpenMP >= 3.0 sets the value of the internal control variable run-sched-var according to the given schedule. Without OpenMP or with OpenMP < 3.0, does nothing.

Note that calling from inside a parallel region does not have an immediate effect.

Definition at line 79 of file OmpSchedule.hpp.