Changes between Version 47 and Version 48 of OpenMPTransformation
- Timestamp:
- 06/10/14 16:07:19 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenMPTransformation
v47 v48 94 94 * combines a barrier and a flush on all shared objects owned by the team. Implicit in many OpenMP worksharing constructs. 95 95 * `$domain $omp_arrive_loop($omp_team, $domain loop_dom)` 96 * 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. 97 * `$domain $omp_arrive_sections($omp_team, int numSections)`96 * 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. The dimension of the domain returned equals the dimension of the given domain `loop_dom`. 97 * `$domain(1) $omp_arrive_sections($omp_team, int numSections)` 98 98 * 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. 99 99 * `int $omp_arrive_single($omp_team team)` … … 214 214 { 215 215 $domain loop_domain = {0..n-1}; 216 $domain my_iters =$omp_arrive_loop(team, loop_domain);216 $domain(1) my_iters = ($domain(1))$omp_arrive_loop(team, loop_domain); 217 217 218 218 $for (int i : my_iters) { … … 239 239 { 240 240 $domain loop_domain = {0..n-1, 0..m-1, 0..l-1}; 241 $domain my_iters =$omp_arrive_loop(team, loop_domain);241 $domain(3) my_iters = ($domain(3))$omp_arrive_loop(team, loop_domain); 242 242 243 243 $for (int i, j, k : my_iters) { … … 262 262 { 263 263 $domain loop_domain = {a..b-1}; 264 $domain my_iters =$omp_arrive_loop(team, loop_domain);264 $domain(1) my_iters = ($domain(1))$omp_arrive_loop(team, loop_domain); 265 265 double _x=0.0, _y=0.0; 266 266 … … 293 293 {{{ 294 294 { 295 $domain my_secs = $omp_arrive_sections(team, numSections);295 $domain(1) my_secs = $omp_arrive_sections(team, numSections); 296 296 297 297 $for (int i : my_secs) { … … 402 402 { 403 403 $domain loop_domain = {a..b}; 404 $domain my_iters =$omp_arrive_loop(loop_domain);404 $domain(1) my_iters = ($domain(1))$omp_arrive_loop(loop_domain); 405 405 int order1=a, order2=a; 406 406
