[Openmp-commits] [openmp] 5069928 - [OpenMP] Reset affinity mask in the process child on FreeBSD
David Carlier via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 30 07:52:26 PDT 2019
Author: David Carlier
Date: 2019-10-30T14:51:22Z
New Revision: 506992848729ceb97d95b29b5a3f691936003c32
URL: https://github.com/llvm/llvm-project/commit/506992848729ceb97d95b29b5a3f691936003c32
DIFF: https://github.com/llvm/llvm-project/commit/506992848729ceb97d95b29b5a3f691936003c32.diff
LOG: [OpenMP] Reset affinity mask in the process child on FreeBSD
Reviewers: dim, chandlerc, jdoerfert
Reviewed By: dim
Differential Revision: https://reviews.llvm.org/D69047
Added:
Modified:
openmp/runtime/src/z_Linux_util.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 9f79a6182d01..1cc41fda1cb3 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -1287,7 +1287,7 @@ static void __kmp_atfork_child(void) {
++__kmp_fork_count;
#if KMP_AFFINITY_SUPPORTED
-#if KMP_OS_LINUX
+#if KMP_OS_LINUX || KMP_OS_FREEBSD
// reset the affinity in the child to the initial thread
// affinity in the parent
kmp_set_thread_affinity_mask_initial();
More information about the Openmp-commits
mailing list