[Openmp-commits] [openmp] r322282 - Fixed libomp static build broken by the commit rL322202.
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 11 07:09:49 PST 2018
Author: achurbanov
Date: Thu Jan 11 07:09:49 2018
New Revision: 322282
URL: http://llvm.org/viewvc/llvm-project?rev=322282&view=rev
Log:
Fixed libomp static build broken by the commit rL322202.
Patch by simone <simone at cs.utah.edu>.
Differential Revision: https://reviews.llvm.org/D41945
Modified:
openmp/trunk/runtime/src/z_Linux_util.cpp
Modified: openmp/trunk/runtime/src/z_Linux_util.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/z_Linux_util.cpp?rev=322282&r1=322281&r2=322282&view=diff
==============================================================================
--- openmp/trunk/runtime/src/z_Linux_util.cpp (original)
+++ openmp/trunk/runtime/src/z_Linux_util.cpp Thu Jan 11 07:09:49 2018
@@ -1341,7 +1341,9 @@ static void __kmp_atfork_child(void) {
__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
More information about the Openmp-commits
mailing list