From 57e9f44a8cf12b00799637ccce1dc35bf84f08e5 Mon Sep 17 00:00:00 2001 From: Carlo Bertolli Date: Thu, 1 Feb 2018 16:12:16 +0000 Subject: [PATCH] [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. llvm-svn: 323978 --- openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu index e10082f17961..5c5c88b2cb64 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu @@ -163,7 +163,7 @@ EXTERN void __kmpc_spmd_kernel_init(int ThreadLimit, int16_t RequiresOMPRuntime, PRINT(LD_PAR, "thread will execute parallel region with id %d in a team of " "%d threads\n", - newTaskDescr->ThreadId(), newTaskDescr->NThreads()); + newTaskDescr->ThreadId(), newTaskDescr->ThreadsInTeam()); if (RequiresDataSharing && threadId % WARPSIZE == 0) { // Warp master innitializes data sharing environment.