Changes between Version 14 and Version 15 of OpenMPTransformation
- Timestamp:
- 04/20/14 18:31:34 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenMPTransformation
v14 v15 247 247 This 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. 248 248 249 In this case the system function must return an int iterator in which the ints occur in loop order. 250 249 251 {{{ 250 252 #pragma omp for ordered … … 264 266 {{{ 265 267 { 268 $int_iter iter = $omp_ws_arrive_loop(_ws, 23, 0, n-1, 1); 266 269 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 ... 270 274 $when (order1==i) { 271 275 translate(S); … … 278 282 } 279 283 ... 280 }281 284 } 282 285 }
