Changes between Version 41 and Version 42 of OpenMPTransformation


Ignore:
Timestamp:
06/10/14 14:15:40 (12 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v41 v42  
    172172    $omp_gshared x_gshared = $omp_gshared_create(gteam, &x);
    173173
    174     $parfor (int _tid : 0..nthreads-1) {
     174    $parfor (int _tid : {0..nthreads-1}) {
    175175      $omp_team team = $omp_team_create($here, gteam, _tid);
    176176      $omp_shared x_shared = $omp_shared_create(team, x_gshared);
     
    226226
    227227{{{
    228 // location 78:
    229228#pragma omp parallel for collapse(3)
    230229for (i=0; i<n; i++)
     
    370369=== Translating `atomic` ===
    371370
    372 In general, reads and writes to shared variables will be processed using the protocols described above (dealing with state variables and ownership, etc.).  However if the operation occurs within an omp atomic construct, it is translated differently.
     371In general, reads and writes to shared variables will be processed using the protocols described above.  However if the operation occurs within an omp atomic construct, it is translated differently.
     372
     373TODO: need to look up the rules on the different flavors of atomics.
    373374
    374375If sequentially consistent atomic...
     
    439440* `omp_get_num_threads()` => `_nthreads`
    440441* `omp_get_thread_num()` => `_tid`
     442
     443