[Openmp-commits] [openmp] 091e8da - [OpenMP] fix test adding mapping of shared variables

via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 12 17:14:40 PST 2021


Author: AndreyChurbanov
Date: 2021-02-13T04:13:54+03:00
New Revision: 091e8daa24de6c348674f7507c0cf9b0f9395607

URL: https://github.com/llvm/llvm-project/commit/091e8daa24de6c348674f7507c0cf9b0f9395607
DIFF: https://github.com/llvm/llvm-project/commit/091e8daa24de6c348674f7507c0cf9b0f9395607.diff

LOG: [OpenMP] fix test adding mapping of shared variables

Added: 
    

Modified: 
    openmp/runtime/test/teams/kmp_num_teams.c

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/teams/kmp_num_teams.c b/openmp/runtime/test/teams/kmp_num_teams.c
index 8012f1f9ecd3..2027b5e987c1 100644
--- a/openmp/runtime/test/teams/kmp_num_teams.c
+++ b/openmp/runtime/test/teams/kmp_num_teams.c
@@ -33,7 +33,7 @@ void check_num_teams(int num_teams_lb, int num_teams_ub, int thread_limit) {
   __kmpc_push_num_teams_51(NULL, gtid, num_teams_lb, num_teams_ub,
                            thread_limit);
 
-#pragma omp target teams
+#pragma omp target teams map(tofrom: a) map(from: nteams, nthreads)
   {
     int priv_nteams;
     int team_num = omp_get_team_num();


        


More information about the Openmp-commits mailing list