#pragma ibm independent_loop

C only


The independent_loop pragma asserts that iterations of the chosen loop are independent, and that the loop can be parallelized.


Read syntax diagramSkip visual syntax diagram>>-#--pragma--ibm independent_loop--+--------+-----------------><
                                    '-if exp-'

where exp represents a scalar expression.


When the if argument is specified, loop iterations are considered independent only as long as exp evaluates to TRUE at run time.

This pragma can be combined with the schedule pragma to select a specific parallel process scheduling algorithm. For more information, see the #pragma ibm schedule description for the schedule pragma.