HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

12.4  priority Clause

Name: priority

Properties: unique

Arguments

Name

Type

Properties

priority-value

expression of integer type

constant, non-negative

Directives

task

,

taskloop

Semantics

The priority clause specifies a hint for the task execution order of tasks generated by the construct on which it appears in the priority-value argument. Among all tasks ready to be executed, higher priority tasks (those with a higher numerical priority-value) are recommended to execute before lower priority ones. The default priority-value when no priority clause is specified is zero (the lowest priority). If a specified priority-value is higher than the max-task-priority-var ICV then the implementation will use the value of that ICV. A program that relies on the task execution order being determined by the priority-value may have unspecified behavior.

Cross References