Next: , Previous: , Up: Implementation Defined Pragmas   [Contents][Index]


2.4 Pragma Acc_Loop

Syntax:

pragma Acc_Loop [( ACC_LOOP_CLAUSE [, ACC_LOOP_CLAUSE... ])];

ACC_LOOP_CLAUSE ::=
    Auto
  | Collapse        => INTEGER_LITERAL
  | Gang            [=> GANG_ARG]
  | Independent
  | Private         => IDENTIFIERS
  | Reduction       => (REDUCTION_RECORD)
  | Seq
  | Tile            => SIZE_EXPRESSION
  | Vector          [=> integer_EXPRESSION]
  | Worker          [=> integer_EXPRESSION]

GANG_ARG ::=
    integer_EXPRESSION
  | Static => SIZE_EXPRESSION

SIZE_EXPRESSION ::=
    *
  | integer_EXPRESSION

Requires the -fopenacc flag.

Equivalent to the loop directive of the OpenAcc standard. This pragma should be placed in for loops after the "Acc_Parallel" pragma. It tells the compiler how to parallelize the loop.

For more information about the effect of the clauses, see the OpenAcc specification.