Changes between Version 65 and Version 66 of OpenMPTransformation


Ignore:
Timestamp:
04/28/17 02:38:24 (9 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v65 v66  
    187187  `2=MODIFIED`: local is occupied, writes have been made to it
    188188
    189 Initially: `local=shared`, `status=FULL`
     189'''Initially: `local=default value`, `status=EMPTY`'''
    190190
    191191Protocols for reads, writes, and flushes:
     
    235235  barrier_and_flush(): // collective operation on all shared objects
    236236    barrier();
    237     for each shared memory unit:
    238       assert there is at most one thread for which this memory unit
    239         has status MODIFIED;
     237    for each shared memory unit, check both:
     238       (1) there is at most one thread for which this memory unit
     239        has status MODIFIED, and (2) if there is one thread for which
     240        the memory unit is MODIFIED then all other threads have status
     241        EMPTY
    240242      flush(memory unit);
    241243    barrier();