Skip to content

Commit 392948b

Browse files
author
Carlo Bertolli
committed
[OpenMP-RT] Fix debug string for NVPTX runtime library
https://reviews.llvm.org/D42757 The method ThreadsInTeam is used to determine the number of threads to be used in a parallel region under SPMD mode (see line 127 of supporti.h in libomptarget/deviceRTLs/nvptx/src/). This patch fixes the corresponding debug print upon initialization of the kernel in SPMD mode. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@323978 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b13de57 commit 392948b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ EXTERN void __kmpc_spmd_kernel_init(int ThreadLimit, int16_t RequiresOMPRuntime,
163163
PRINT(LD_PAR,
164164
"thread will execute parallel region with id %d in a team of "
165165
"%d threads\n",
166-
newTaskDescr->ThreadId(), newTaskDescr->NThreads());
166+
newTaskDescr->ThreadId(), newTaskDescr->ThreadsInTeam());
167167

168168
if (RequiresDataSharing && threadId % WARPSIZE == 0) {
169169
// Warp master innitializes data sharing environment.

0 commit comments

Comments
 (0)