Changes between Version 52 and Version 53 of OpenMPTransformation


Ignore:
Timestamp:
08/12/14 17:41:35 (12 years ago)
Author:
zmanchun
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenMPTransformation

    v52 v53  
    130130 * called by a thread to write to the shared object. ref is a pointer into the local copy of the shared variable. The value to be written is taken from the memory unit pointed to by value. assumes ref is a pointer to a scalar.
    131131
    132 * `void $omp_apply_assoc($omp_shared shared, void *local, $operation op, void *value)`
    133  * applies the associative operator specified by op to the local value and the corresponding shared value,  and writes the result back to the shared object. This happens in one atomic step. Example: you can use this to add some value to a shared variable, using CIVL_SUM for op. assumes local is a pointer to a scalar.
     132* `void $omp_apply_assoc($omp_shared shared, $operation op, void *local)`
     133 * applies the associative operator specified by op to the local copy and the corresponding shared copy,  and writes the result back to the shared copy. This happens in one atomic step. Example: you can use this to add some value to a shared variable, using CIVL_SUM for op. assumes local is a pointer to a scalar.
    134134
    135135* `void $omp_flush($omp_shared shared, void *ref)`