Changes between Version 36 and Version 37 of OpenMPTransformation
- Timestamp:
- 06/10/14 11:47:54 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenMPTransformation
v36 v37 66 66 * `$omp_ref $omp_member_ref($omp_ref, int fieldIndex)` 67 67 * `void $omp_read(void *result, $omp_ref ref)` 68 ** called by a thread to read a shared object pointed to by `ref`. The result of the read is stored in the memory unit pointed to by `result`.68 * called by a thread to read a shared object pointed to by `ref`. The result of the read is stored in the memory unit pointed to by `result`. 69 69 * `void $omp_write($shared_ref ref, void *value)` 70 ** called by a thread to write to the shared object pointed to by `ref`. The value to be written is taken from the memory unit pointed to by `value`.70 * called by a thread to write to the shared object pointed to by `ref`. The value to be written is taken from the memory unit pointed to by `value`. 71 71 * `void $omp_flush($omp_shared shared)` 72 ** performs an OpenMP flush operation on the shared object72 * performs an OpenMP flush operation on the shared object 73 73 * `void $omp_flush_all($omp_team)` 74 ** performs an OpenMP flush operation on all shared objects. This is the default in OpenMP if no argument is specified for a flush construct.74 * performs an OpenMP flush operation on all shared objects. This is the default in OpenMP if no argument is specified for a flush construct. 75 75 76 76 === Worksharing and barriers === 77 77 78 78 * `void $omp_barrier($omp_team team)` 79 ** 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.79 * 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. 80 80 * `void $omp_barrier_and_flush($omp_team team)` 81 ** combines a barrier and a flush on all shared objects owned by the team. Implicit in many OpenMP worksharing constructs.81 * combines a barrier and a flush on all shared objects owned by the team. Implicit in many OpenMP worksharing constructs. 82 82 * `$domain $omp_arrive_loop($omp_team, $domain loop_dom)` 83 ** 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.84 * *`$domain $omp_arrive_sections($omp_team, int numSections)`85 ** 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.83 * 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. 84 * `$domain $omp_arrive_sections($omp_team, int numSections)` 85 * 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. 86 86 * `int $omp_arrive_single($omp_team team)` 87 ** called by a thread when it reaches on omp single construct, returns the thread ID of the thread that will execute the single construct.87 * called by a thread when it reaches on omp single construct, returns the thread ID of the thread that will execute the single construct. 88 88 89 89
