Changes between Version 14 and Version 15 of OpenMPTransformation


Ignore:
Timestamp:
04/20/14 18:31:34 (12 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v14 v15  
    247247This can only be used inside and OMP `for` loop in which the pragma used the `ordered` clause.  (Check that.)  It indicates that the specified region must be executed in iteration order.
    248248
     249In this case the system function must return an int iterator in which the ints occur in loop order.
     250
    249251{{{
    250252#pragma omp for ordered
     
    264266{{{
    265267{
     268  $int_iter iter = $omp_ws_arrive_loop(_ws, 23, 0, n-1, 1);
    266269  int order1=a, order2=a;
    267   for (i=a; i<b; i++) {
    268     if (CIVL_owns(nthreads, tid, i)) {
    269       ...
     270
     271  while ($int_iter_hasNext(iter)) {
     272    int i = $int_iter_next(iter);
     273     ...
    270274      $when (order1==i) {
    271275        translate(S);
     
    278282      }
    279283      ...
    280     }
    281284  }
    282285}