forked from OSchip/llvm-project
![]() We have to ensure that the runtime is initialized _before_ waiting for the two started threads to guarantee that the master threads post their ompt_event_thread_begin before the worker threads. This is not guaranteed in the parallel region where one worker thread could start before the other master thread has invoked the callback. The problem did not happen with Clang becauses the generated code calls __kmpc_global_thread_num() and cashes its result for functions that contain OpenMP pragmas. Differential Revision: https://reviews.llvm.org/D43882 llvm-svn: 326435 |
||
---|---|---|
.. | ||
api | ||
atomic | ||
barrier | ||
critical | ||
env | ||
flush | ||
lock | ||
master | ||
misc_bugs | ||
ompt | ||
parallel | ||
tasking | ||
threadprivate | ||
worksharing | ||
CMakeLists.txt | ||
lit.cfg | ||
lit.site.cfg.in | ||
omp_my_sleep.h | ||
omp_testsuite.h |