Next: Pragma Acc_Kernels, Previous: Pragma Acc_Parallel, Up: Implementation Defined Pragmas [Contents][Index]
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.