[Openmp-commits] [PATCH] D54305: Fix for bugzilla https://bugs.llvm.org/show_bug.cgi?id=39137.
Phabricator via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 14 05:52:19 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL346862: Fix for bugzilla https://bugs.llvm.org/show_bug.cgi?id=39137. (authored by achurbanov, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D54305?vs=173307&id=174025#toc
Repository:
rL LLVM
https://reviews.llvm.org/D54305
Files:
openmp/trunk/runtime/src/kmp_runtime.cpp
Index: openmp/trunk/runtime/src/kmp_runtime.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_runtime.cpp
+++ openmp/trunk/runtime/src/kmp_runtime.cpp
@@ -2649,6 +2649,8 @@
KMP_COUNT_VALUE(OMP_set_numthreads, new_nth);
thread = __kmp_threads[gtid];
+ if (thread->th.th_current_task->td_icvs.nproc == new_nth)
+ return; // nothing to do
__kmp_save_internal_controls(thread);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54305.174025.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181114/170b2551/attachment.bin>
More information about the Openmp-commits
mailing list