OpenMP® Forum

Discussion on the OpenMP specification run by the OpenMP ARB. OpenMP and the OpenMP logo are registered trademarks of the OpenMP Architecture Review Board in the United States and other countries. All rights reserved.

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?