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

5.4  Data-Sharing Attribute Clauses

Several constructs accept clauses that allow a user to control the data-sharing attributes of variables referenced in the construct. Not all of the clauses listed in this section are valid on all directives. The set of clauses that is valid on a particular directive is described with the directive. The reduction data-sharing attribute clauses are explained in Section 5.5.

A list item may be specified in both firstprivate and lastprivate clauses.

If a variable referenced in a data-sharing attribute clause has a type derived from a template and the program does not otherwise reference that variable, any behavior related to that variable is unspecified.
If individual members of a common block appear in a data-sharing attribute clause other than the shared clause, the variables no longer have a Fortran storage association with the common block.

  5.4.2  shared Clause
  5.4.3  private Clause
  5.4.4  firstprivate Clause
  5.4.5  lastprivate Clause
  5.4.6  linear Clause
  5.4.7  is_device_ptr Clause
  5.4.8  use_device_ptr Clause
  5.4.9  has_device_addr Clause
  5.4.10  use_device_addr Clause