diff options
| author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2018-01-11 15:09:49 +0000 |
|---|---|---|
| committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2018-01-11 15:09:49 +0000 |
| commit | 5388acd3de1122081bca90f76bc240b9e90af752 (patch) | |
| tree | 75812b42cb59d1c02e8dd183c1f813ecaac8206f /openmp/runtime/src | |
| parent | e0df4650f8f60847af89c92b2dd013c069df86ec (diff) | |
| download | bcm5719-llvm-5388acd3de1122081bca90f76bc240b9e90af752.tar.gz bcm5719-llvm-5388acd3de1122081bca90f76bc240b9e90af752.zip | |
Fixed libomp static build broken by the commit rL322202.
Patch by simone <simone@cs.utah.edu>.
Differential Revision: https://reviews.llvm.org/D41945
llvm-svn: 322282
Diffstat (limited to 'openmp/runtime/src')
| -rw-r--r-- | openmp/runtime/src/z_Linux_util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp index d7e2ed87875..f50dac06d19 100644 --- a/openmp/runtime/src/z_Linux_util.cpp +++ b/openmp/runtime/src/z_Linux_util.cpp @@ -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 |

