Changes between Version 38 and Version 39 of OpenMPTransformation
- Timestamp:
- 06/10/14 14:00:57 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenMPTransformation
v38 v39 51 51 === Team creation and destruction === 52 52 53 * `$omp_gteam $omp_gteam_create($scope scope, int threads)` 53 * `$omp_gteam $omp_gteam_create($scope scope, int nthreads)` 54 * creates new global team object, allocating object in heap in specified scope. Number of threads that will be in the team is `nthreads`. 54 55 * `void $omp_gteam_destroy($omp_gteam gteam)` 56 * destroys the global team object. All shared objects associated to the team must have been destroyed before calling this function. 55 57 * `$omp_team $omp_team_create($scope scope, $omp_gteam gteam, int tid)` 58 * creates new local team object for a specific thread. 56 59 * `void $omp_team_destroy($omp_team team)` 60 * destroys the local team object 57 61 58 62 === Shared variables === 59 63 60 64 * `$omp_gshared $omp_gshared_create($omp_gteam, void *original)` 65 * creates new global shared object, associated to the given global team. A pointer to the shared variable that this object corresponds to is given. The new object is initialized by copying the values from the original variable. 61 66 * `void $omp_gshared_destroy($omp_gshared gshared)` 67 * destroys the global shared object, copying the context to the original variable 62 68 * `$omp_shared $omp_shared_create($omp_team team, $omp_gshared gshared)` 69 * creates a local shared object, returning handle to it 63 70 * `void $omp_shared_destroy($omp_shared shared)` 71 * destroys the local shared object 64 72 * `$omp_ref $omp_identity_ref($omp_shared shared)` 73 * creates a reference to the specified shared object 65 74 * `$omp_ref $omp_array_element_ref($omp_ref ref, int index)` 66 * `$omp_ref $omp_member_ref($omp_ref, int fieldIndex)` 75 * creates a reference to an element of a shared array object. Argument `ref` is a reference to shared object of array type. 76 * `$omp_ref $omp_member_ref($omp_ref ref, int fieldIndex)` 77 * creates a reference to a member of a structure or union shared object. Argument `ref` is a reference to the shared object of structure or union type. 67 78 * `void $omp_read(void *result, $omp_ref ref)` 68 79 * 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`. … … 86 97 * `int $omp_arrive_single($omp_team team)` 87 98 * 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 89 90 91 92 99 93 100
