Next: Pragma Acc_Data, Previous: Pragma Acc_Loop, Up: Implementation Defined Pragmas [Contents][Index]
Syntax:
pragma Acc_Kernels [( ACC_KERNELS_CLAUSE [, ACC_KERNELS_CLAUSE...])]; ACC_KERNELS_CLAUSE ::= Acc_If => boolean_EXPRESSION | Async => integer_EXPRESSION | Copy => IDENTIFIERS | Copy_In => IDENTIFIERS | Copy_Out => IDENTIFIERS | Create => IDENTIFIERS | Default => None | Device_Ptr => IDENTIFIERS | Num_Gangs => integer_EXPRESSION | Num_Workers => integer_EXPRESSION | Present => IDENTIFIERS | Vector_Length => integer_EXPRESSION | Wait => INTEGERS IDENTIFIERS ::= | IDENTIFIER | (IDENTIFIER, IDENTIFIERS) INTEGERS ::= | integer_EXPRESSION | (integer_EXPRESSION, INTEGERS)
Requires the -fopenacc
flag.
Equivalent to the kernels directive of the OpenAcc standard. This pragma should be placed in loops.
For more information about the effect of the clauses, see the OpenAcc specification.