[OPENMP][NVPTX]Fixed/improved support for globalization in team contexts.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Nov 2018 14:43:23 +0000 (14:43 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Nov 2018 14:43:23 +0000 (14:43 +0000)
commit463e9f3224e0f04173cf16ce8582bf4d8f8d1a4c
tree26a9c0c2f8afc9fcd337213d7b684fd8ccc1b05a
parentf070544f8e2269eb94610d13484f471b3b4fe19d
[OPENMP][NVPTX]Fixed/improved support for globalization in team contexts.

Summary:
Current globalization scheme works correctly only for SPMD+lightweight
runtime mode and does not work for full runtime. Patch improves support
for the globalization scheme + reduces global memory consumption in
  lightweight runtime mode.
Patch adds runtime functions to work with the statically allocated
global memory. It allows to improve performance and memory consumption.
This global memory must be allocated by the compiler.

Reviewers: grokos, kkwli0, gtbercea, caomhin

Subscribers: guansong, jfb, openmp-commits

Differential Revision: https://reviews.llvm.org/D53943

llvm-svn: 345976
openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
openmp/libomptarget/deviceRTLs/nvptx/src/interface.h
openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h