[OpenMP][Clang] Add call to global data sharing stack initialization on the workers...
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Thu, 22 Mar 2018 17:33:27 +0000 (17:33 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Thu, 22 Mar 2018 17:33:27 +0000 (17:33 +0000)
commit36cdfad06236e1f3f348ab68b7ba8083337c81b3
treeca4d947a09e8030e12e6bdb564f2de1e1f0acb2c
parentb3297ef05179e1fee616b97b1c65b58e4c7fef17
[OpenMP][Clang] Add call to global data sharing stack initialization on the workers side

Summary: The workers also need to initialize the global stack. The call to the initialization function needs to happen after the kernel_init() function is called by the master. This ensures that the per-team data structures of the runtime have been initialized.

Reviewers: ABataev, grokos, carlo.bertolli, caomhin

Reviewed By: ABataev

Subscribers: jholewinski, guansong, cfe-commits

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

llvm-svn: 328219
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_data_sharing.cpp