[OpenMP] libomp: implement nteams-var and teams-thread-limit-var ICVs
authorAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 1 Feb 2021 19:54:11 +0000 (22:54 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 1 Feb 2021 19:54:11 +0000 (22:54 +0300)
commitd7b12004bd7d6d9a592f1773101cbedd9daf8492
treecb49ba6882fff0bc380062ff59417d3eb4960638
parent2a53d9a6e7736fe141cd6365be05d972ff6f0065
[OpenMP] libomp: implement nteams-var and teams-thread-limit-var ICVs

The change includes OMP_NUM_TEAMS, OMP_TEAMS_THREAD_LIMIT env variables,
omp_set_num_teams, omp_get_max_teams, omp_set_teams_thread_limit,
omp_get_teams_thread_limit routines.

Differential Revision: https://reviews.llvm.org/D95003
13 files changed:
openmp/runtime/src/dllexports
openmp/runtime/src/include/omp.h.var
openmp/runtime/src/include/omp_lib.f90.var
openmp/runtime/src/include/omp_lib.h.var
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_ftn_entry.h
openmp/runtime/src/kmp_ftn_os.h
openmp/runtime/src/kmp_global.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/test/api/omp_nteams_api.c [new file with mode: 0644]
openmp/runtime/test/api/omp_nteams_api_env.c [new file with mode: 0644]
openmp/runtime/test/api/omp_nteams_api_env2.c [new file with mode: 0644]