Changes between Version 51 and Version 52 of OpenMPTransformation


Ignore:
Timestamp:
08/12/14 17:40:16 (12 years ago)
Author:
zmanchun
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v51 v52  
    143143* `void $omp_barrier($omp_team team)`
    144144 * performs a barrier only.  Note however that usually (always?) a barrier is accompanied by a flush-all, so `$omp_barrier_and_flush` should be used instead.
     145
    145146* `void $omp_barrier_and_flush($omp_team team)`
    146147 * combines a barrier and a flush on all shared objects owned by the team.  Implicit in many OpenMP worksharing constructs.
     148
    147149* `$domain $omp_arrive_loop($omp_team, $domain loop_dom)`
    148150 * 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`.
     151
    149152* `$domain(1) $omp_arrive_sections($omp_team, int numSections)`
    150153 * 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.
     154
    151155* `int $omp_arrive_single($omp_team team)`
    152156 * called by a thread when it reaches on omp single construct, returns the thread ID of the thread that will execute the single construct.
     
    172176
    173177interepration of status value:
    174   '0=EMPTY': local is empty
    175   '1=FULL': local is occupied, no writes to it have been made
    176   '2=MODIFIED': local is occupied, writes have been made to it
     178  `0=EMPTY`: local is empty
     179
     180  `1=FULL`: local is occupied, no writes to it have been made
     181
     182  `2=MODIFIED`: local is occupied, writes have been made to it
    177183
    178184Initially: `local=shared`, `status=FULL`
     
    283289        float tmp = 5.2;
    284290 
    285         $omp_write($omp_identity_ref(x_shared), &tmp);
     291        $omp_write(x_shared, &(x_shared->local), &tmp);
    286292      }
    287293      _y = 3;