what construct can be nested used inside target

Discuss the OpenMP 4.0 API Specifications released July 2013

what construct can be nested used inside target

Postby edmundyou » Sat Aug 17, 2013 4:45 am

1. if all the parallelism on multicore platform can be used directly inside target, such as task,parallel. 4.0 specification is not clearly about this.
#pragma omp target
#pragma omp parallel for
for(i=0;i<n;i++) {... ...}
2. restrictions of team construct mentioned: "distribute, parallel, parallel sections, parallel workshare, and the parallel loop and parallel loop SIMD constructs are the only OpenMP constructs that can be closely nested in the teams region." ,see the code below:
#pragma omp target
#pragma omp team num_teams(2)
#pragma omp parallel for
for(i=0;i<n;i++) {... ...}
if the two teams being created do the samething? what the purpose of allow parallel can be closely nested in team?
edmundyou
 
Posts: 1
Joined: Thu Aug 15, 2013 9:34 pm

Return to OpenMP 4.0 API Specifications

Who is online

Users browsing this forum: No registered users and 2 guests

cron