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

13.3  thread_limit Clause

Name: thread_limit

Properties: unique

Arguments

Name

Type

Properties

threadlim

expression of integer type

positive

Directives

target

,

teams

Semantics

As described in Section 2.4, some constructs limit the number of threads that may participate in a contention group initiated by each team by setting the value of the thread-limit-var ICV for the initial task to an implementation-defined value greater than zero. If the thread_limit clause is specified, the number of threads will be less than or equal to threadlim. Otherwise, if the teams-thread-limit-var ICV is greater than zero, the effect is as if the thread_limit clause was specified with a threadlim that evaluates to an implementation defined value less than or equal to the teams-thread-limit-var ICV.

Cross References