[Openmp-commits] [PATCH] D50649: [OpenMP] Add check for hot_teams array

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 24 11:06:05 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL340629: [OpenMP] Add check for hot_teams array (authored by jlpeyton, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D50649?vs=160395&id=162424#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50649

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
@@ -2115,7 +2115,8 @@
             master_th->th.th_task_state;
         master_th->th.th_task_state_top++;
 #if KMP_NESTED_HOT_TEAMS
-        if (team == master_th->th.th_hot_teams[active_level].hot_team) {
+        if (master_th->th.th_hot_teams &&
+            team == master_th->th.th_hot_teams[active_level].hot_team) {
           // Restore master's nested state if nested hot team
           master_th->th.th_task_state =
               master_th->th


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50649.162424.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180824/fd9a93c0/attachment.bin>


More information about the Openmp-commits mailing list