[Openmp-commits] [PATCH] D41945: Fix for libomp static build
Andrey Churbanov via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 11 03:42:05 PST 2018
AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: tlwilmar, hbae, jlpeyton.
Herald added a subscriber: openmp-commits.
Bug introduced by commit https://reviews.llvm.org/rL322202, ittnotify call was not guarded with USE_ITT_BUILD macro.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D41945
Files:
runtime/src/z_Linux_util.cpp
Index: runtime/src/z_Linux_util.cpp
===================================================================
--- runtime/src/z_Linux_util.cpp
+++ runtime/src/z_Linux_util.cpp
@@ -1341,7 +1341,9 @@
__kmp_init_bootstrap_lock(&__kmp_console_lock);
__kmp_init_bootstrap_lock(&__kmp_task_team_lock);
+#if USE_ITT_BUILD
__kmp_itt_reset(); // reset ITT's global state
+#endif /* USE_ITT_BUILD */
/* This is necessary to make sure no stale data is left around */
/* AC: customers complain that we use unsafe routines in the atfork
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41945.129424.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180111/69852e90/attachment-0001.bin>
More information about the Openmp-commits
mailing list