[OPENMP][NVPTX]Make runtime compatible with the original runtime.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 30 Nov 2018 16:52:38 +0000 (16:52 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 30 Nov 2018 16:52:38 +0000 (16:52 +0000)
commit0f221f53d80b5bf517c1ae6036b13b25900e2c46
tree60ac3535b25eb533f3a31291ddb4a7d71d5dee1b
parent1cfb796b5882a62ae954f2b68e5770a5a485c853
[OPENMP][NVPTX]Make runtime compatible with the original runtime.

Summary:
Reworked runtime to make it compatible with the requirements of the
original runtime library. Also, simplified some code to reduce number of
function calls.

Reviewers: gtbercea, kkwli0

Subscribers: guansong, jfb, caomhin, openmp-commits

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

llvm-svn: 348003
openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu
openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu
openmp/libomptarget/deviceRTLs/nvptx/src/task.cu