[OpenMP] Initialize runtime in the forked child process
authorHansang Bae <hansang.bae@intel.com>
Mon, 14 Dec 2020 16:54:03 +0000 (10:54 -0600)
committerHansang Bae <hansang.bae@intel.com>
Tue, 15 Dec 2020 13:29:28 +0000 (07:29 -0600)
commit171ca93c543098d5e0bef459847de14cf17b5faf
treee74b871f8e6c7b5fa156d450cef019c5df91f94c
parent5186eda3269333b2fb38800e9ded2a27ae87f99b
[OpenMP] Initialize runtime in the forked child process

This patch enables serial initialization in the forked child process
to fix unstable runtime behavior when used with Python-based AI tools.

Differential Revision: https://reviews.llvm.org/D93230
openmp/runtime/src/z_Linux_util.cpp