[PATCH] D48286: [OpenMP] [CUDA] Expose teamid to the debug path

Guansong Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 19 07:10:24 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL335046: [OpenMP] [CUDA] Expose teamid to the debug path (authored by guansong, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D48286?vs=151732&id=151915#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48286

Files:
  openmp/trunk/libomptarget/deviceRTLs/nvptx/src/loop.cu


Index: openmp/trunk/libomptarget/deviceRTLs/nvptx/src/loop.cu
===================================================================
--- openmp/trunk/libomptarget/deviceRTLs/nvptx/src/loop.cu
+++ openmp/trunk/libomptarget/deviceRTLs/nvptx/src/loop.cu
@@ -334,11 +334,11 @@
       else
         __kmpc_barrier(loc, threadId);
       // save sched state
+      int teamId = GetOmpTeamId();
       omptarget_nvptx_threadPrivateContext->ScheduleType(tid) = schedule;
       if (GetThreadIdInBlock() == 0) {
         if (chunk < 1)
           chunk = 1;
-        int teamId = GetOmpTeamId();
         omptarget_nvptx_threadPrivateContext->Chunk(teamId) = chunk;
         omptarget_nvptx_threadPrivateContext->LoopUpperBound(teamId) = ub;
         omptarget_nvptx_threadPrivateContext->NextLowerBound(teamId) = lb;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48286.151915.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/0bbf7f8b/attachment.bin>


More information about the llvm-commits mailing list