omp_clause¶
The omp_clause
union represents OpenMP clauses that modify the behavior of an OMPRegion
directive.
Declaración¶
Sintaxis¶
omp_clause
= OMPPrivate(expr* vars)
| OMPShared(expr* vars)
| OMPFirstPrivate(expr* vars)
| OMPReduction(reduction_op operator, expr* vars)
| OMPCollapse(expr count)
| OMPNumThreads(expr num_threads)
| OMPSchedule(schedule_type kind, expr? chunk_size)
| OMPNumTeams(expr num_teams)
| OMPThreadLimit(expr thread_limit)
| OMPMap(map_type type, expr* vars)
Argumentos¶
Clause Type |
Argumentos |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Valores devueltos¶
None.
Descripción¶
omp_clause
defines modifiers for OpenMP regions in the Abstract Semantic Representation (ASR). Clauses control aspects like data scoping (e.g., OMPPrivate
, OMPShared
), reductions (OMPReduction
), loop scheduling (OMPSchedule
), team configuration (OMPNumTeams
), and device data mapping (OMPMap
). These clauses are attached to OMPRegion
nodes to specify runtime behavior during execution.
More enums¶
map_type
: Enumeration for mapping directions inOMPMap
.To
: Map data to device.From
: Map data from device.ToFrom
: Map data to and from device.Alloc
: Allocate on device.Release
: Release from device.Delete
: Delete from device.
schedule_type
: Enumeration for loop scheduling inOMPSchedule
.Static
: Static scheduling.Dynamic
: Dynamic scheduling.Guided
: Guided scheduling.Auto
: Compiler-decided scheduling.Runtime
: Runtime-decided scheduling.