Changes between Version 47 and Version 48 of OpenMPTransformation


Ignore:
Timestamp:
06/10/14 16:07:19 (12 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v47 v48  
    9494 * combines a barrier and a flush on all shared objects owned by the team.  Implicit in many OpenMP worksharing constructs.
    9595* `$domain $omp_arrive_loop($omp_team, $domain loop_dom)`
    96  * called by a thread when it reaches an omp for loop, this function returns the subset of the loop domain specifying the iterations that this thread will execute.
    97 * `$domain $omp_arrive_sections($omp_team, int numSections)`
     96 * called by a thread when it reaches an omp for loop, this function returns the subset of the loop domain specifying the iterations that this thread will execute.  The dimension of the domain returned equals the dimension of the given domain `loop_dom`.
     97* `$domain(1) $omp_arrive_sections($omp_team, int numSections)`
    9898 * called by a thread when it reaches an omp sections construct, this function returns the subset of the integers 0..numSections-1 specifying the indexes of the sections that this thread will execute.  The sections are numbered from 0 in increasing order.
    9999* `int $omp_arrive_single($omp_team team)`
     
    214214{
    215215  $domain loop_domain = {0..n-1};
    216   $domain my_iters = $omp_arrive_loop(team, loop_domain);
     216  $domain(1) my_iters = ($domain(1))$omp_arrive_loop(team, loop_domain);
    217217
    218218  $for (int i : my_iters) {
     
    239239{
    240240  $domain loop_domain = {0..n-1, 0..m-1, 0..l-1};
    241   $domain my_iters = $omp_arrive_loop(team, loop_domain);
     241  $domain(3) my_iters = ($domain(3))$omp_arrive_loop(team, loop_domain);
    242242
    243243  $for (int i, j, k : my_iters) {
     
    262262{
    263263  $domain loop_domain = {a..b-1};
    264   $domain my_iters = $omp_arrive_loop(team, loop_domain);
     264  $domain(1) my_iters = ($domain(1))$omp_arrive_loop(team, loop_domain);
    265265  double _x=0.0, _y=0.0;
    266266
     
    293293{{{
    294294{
    295   $domain my_secs = $omp_arrive_sections(team, numSections);
     295  $domain(1) my_secs = $omp_arrive_sections(team, numSections);
    296296
    297297  $for (int i : my_secs) {
     
    402402{
    403403  $domain loop_domain = {a..b};
    404   $domain my_iters = $omp_arrive_loop(loop_domain);
     404  $domain(1) my_iters = ($domain(1))$omp_arrive_loop(loop_domain);
    405405  int order1=a, order2=a;
    406406