Changes between Version 30 and Version 31 of Next-GenOpenMPTransformation
- Timestamp:
- 06/25/19 18:10:56 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Next-GenOpenMPTransformation
v30 v31 418 418 int _y; // private variable 419 419 420 $write_set_push(); 421 $read_set_push(); 420 422 ... 421 423 x = 5.2; 422 424 _y = 3; 423 425 ... 424 $omp_barrier_and_flush(team); // implicit at end of parallel region 425 $omp_team_destroy(team); 426 // check for dataraces (collective operation) 427 $omp_barrier_and_flush(team, $read_set_pop(), $write_set_pop()); 428 $omp_team_destroy(team); 426 429 } // end $parfor 427 430 $omp_gteam_destroy(gteam); … … 454 457 translate(S); 455 458 } 456 $barrier_and_flush(team); 459 $barrier_and_flush(team, $read_set_pop(), $write_set_pop()); 460 $read_set_push(); $write_set_push(); 457 461 } 458 462 }}} … … 479 483 translate(S); 480 484 } 481 $omp_barrier_and_flush(team); 485 $omp_barrier_and_flush(team, $read_set_pop(), $write_set_pop()); 486 $read_set_push(); $write_set_push(); 482 487 } 483 488 }}} … … 675 680 676 681 Just leave out the `$omp_barrier_and_flush` at the end of the translated construct. 677
