[OPENMP][NVPTX]Run parallel regions with num_threads clauses in SPMD
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 15 Apr 2019 20:38:10 +0000 (20:38 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 15 Apr 2019 20:38:10 +0000 (20:38 +0000)
commite0eb13135f96157e0b05f87729ada87989c72bd4
tree1fb8ad70f8cd8bc5c23ff00b662922a6841eacf5
parent5ae05d810c8db486989a799306f65e8e16cfeff1
[OPENMP][NVPTX]Run parallel regions with num_threads clauses in SPMD
mode.

After the previous patch with the more correct handling of the number of
threads in parallel regions, the parallel regions with num_threads
clauses can be executed in SPMD mode.

llvm-svn: 358445
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp
clang/test/OpenMP/nvptx_target_parallel_num_threads_codegen.cpp