]> granicus.if.org Git - clang/commit
[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)
commit14d3260e442fbb80e956ef32be2a63c298933ef7
tree2379f257578fbea3ad6a84ea13546799cc0753e1
parent9c5e1332c8417bb8f8dbcd99e89b92973b8e7ef7
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_data_sharing.cpp