docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
sdfg::omp::ScheduleType_OMP Class Reference

CPU parallel schedule type with OpenMP support. More...

#include <sdfg/targets/omp/schedule.h>

Static Public Member Functions

static void num_threads (structured_control_flow::ScheduleType &schedule, const symbolic::Expression num_threads)
 Set the number of threads for parallel execution.
static const symbolic::Expression num_threads (const structured_control_flow::ScheduleType &schedule)
 Get the number of threads.
static void omp_schedule (structured_control_flow::ScheduleType &schedule, const OpenMPSchedule schedule_type)
 Set the OpenMP scheduling strategy.
static OpenMPSchedule omp_schedule (const structured_control_flow::ScheduleType &schedule)
 Get the OpenMP scheduling strategy.
static const std::string value ()
static structured_control_flow::ScheduleType create ()

Detailed Description

CPU parallel schedule type with OpenMP support.

Indicates that loop iterations can execute in parallel on CPU threads using OpenMP directives. Supports configuration of:

  • Number of threads
  • OpenMP scheduling strategy (static, dynamic, guided)

Member Function Documentation

◆ create()

structured_control_flow::ScheduleType sdfg::omp::ScheduleType_OMP::create ( )
inlinestatic

◆ num_threads() [1/2]

const symbolic::Expression sdfg::omp::ScheduleType_OMP::num_threads ( const structured_control_flow::ScheduleType & schedule)
inlinestatic

Get the number of threads.

Parameters
scheduleSchedule to query
Returns
Symbolic expression for number of threads

◆ num_threads() [2/2]

void sdfg::omp::ScheduleType_OMP::num_threads ( structured_control_flow::ScheduleType & schedule,
const symbolic::Expression num_threads )
inlinestatic

Set the number of threads for parallel execution.

Parameters
scheduleSchedule to configure
num_threadsSymbolic expression for number of threads

◆ omp_schedule() [1/2]

OpenMPSchedule sdfg::omp::ScheduleType_OMP::omp_schedule ( const structured_control_flow::ScheduleType & schedule)
inlinestatic

Get the OpenMP scheduling strategy.

Parameters
scheduleSchedule to query
Returns
OpenMP scheduling strategy

◆ omp_schedule() [2/2]

void sdfg::omp::ScheduleType_OMP::omp_schedule ( structured_control_flow::ScheduleType & schedule,
const OpenMPSchedule schedule_type )
inlinestatic

Set the OpenMP scheduling strategy.

Parameters
scheduleSchedule to configure
schedule_typeOpenMP scheduling strategy

◆ value()

const std::string sdfg::omp::ScheduleType_OMP::value ( )
inlinestatic

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