aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuansong Zhang <zhang.guansong@gmail.com>2018-06-19 14:05:38 +0000
committerGuansong Zhang <zhang.guansong@gmail.com>2018-06-19 14:05:38 +0000
commitf9e56e598216142d23b7cba1261799bd8b14964c (patch)
tree7a7b23e60f34a11b1e23f89f59a1ae838d2e44ad
parent04613936603503d791705bb0ea7356644f142316 (diff)
downloadllvm-f9e56e598216142d23b7cba1261799bd8b14964c.zip
llvm-f9e56e598216142d23b7cba1261799bd8b14964c.tar.gz
llvm-f9e56e598216142d23b7cba1261799bd8b14964c.tar.bz2
[OpenMP] [CUDA] Expose teamid to the debug path
Summary: Small bug fix for debug build. A previous fix causing trouble for debug build. Reviewers: grokos Reviewed By: grokos Subscribers: openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D48286 llvm-svn: 335046
-rw-r--r--openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu
index 91eaaca..80fb61f 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu
+++ b/openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu
@@ -334,11 +334,11 @@ public:
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;