Changes between Version 45 and Version 46 of Next-GenOpenMPTransformation
- Timestamp:
- 10/31/19 14:29:37 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Next-GenOpenMPTransformation
v45 v46 440 440 transfromed(BLOCK) 441 441 442 $omp_barrier _and_flush(team); //check data race442 $omp_barrier(team); //check data race included 443 443 444 444 $read_set_pop(); $write_set_pop(); … … 491 491 ... 492 492 } 493 $omp_barrier _and_flush();493 $omp_barrier(team); 494 494 } 495 495 }}} … … 512 512 513 513 if (_omp_tid == _omp_single_dist) { 514 translate( S);515 } 516 517 $omp_barrier _and_flush(team);514 translate(BLOCK); 515 } 516 517 $omp_barrier(team); 518 518 } // single construct (end) 519 519 }}} … … 545 545 transfromed(BLOCK) 546 546 } 547 $ barrier_and_flush(team);547 $omp_barrier(team); 548 548 } // worksharing-loop construct (end) 549 549 }}} … … 571 571 transfromed(BLOCK) 572 572 } 573 $omp_barrier _and_flush(team);573 $omp_barrier(team); 574 574 } // worksharing-loop construct (end) 575 575 }}} … … 603 603 604 604 {{{ 605 $omp_barrier _and_flush(team);605 $omp_barrier(team); 606 606 }}} 607 607 … … 616 616 // critical block with unspecified name 617 617 #pragma omp critical 618 BLOCK A618 BLOCK_A 619 619 620 620 // critical block with specified name 621 621 #pragma omp critical(x) 622 BLOCK X622 BLOCK_X 623 623 }}} 624 624 … … 627 627 {{{ 628 628 ... 629 _Bool _critical_ = $false;630 _Bool _critical_x = $false;629 _Bool critical_ = $false; 630 _Bool critical_x = $false; 631 631 632 632 ... 633 633 634 634 // critical block with unspecified name 635 $when (!_critical_) _critical_=$true; 636 translate(BLOCKA) 637 _critical_=$false; 635 $yield(); 636 $when (!critical_) critical_ = $true; 637 $check_no_data_race(team); 638 translate(BLOCK_A) 639 critical_ = $false; 638 640 639 641 // critical block with specified name 640 $when (!_critical_x) _critical_x=$true; 641 translate(BLOCKX); 642 _critical_x=$false; 642 $yield(); 643 $when (!critical_x) critical_x = $true; 644 $check_no_data_race(team); 645 translate(BLOCK_X); 646 critical_x = $false; 643 647 }}} 644 648 … … 746 750 $omp_reduction_combine(MULT, _omp_rdc_1_prod, prod); 747 751 748 $omp_barrier _and_flush(team); //check data race752 $omp_barrier(team); //check data race 749 753 .. 750 754 } … … 786 790 $omp_reduction_combine(ADD, _omp_rdc_1_isum, isum); 787 791 788 $omp_barrier _and_flush(team);792 $omp_barrier(team); 789 793 } // worksharing-loop construct (end) 790 794 }}}
