[Openmp-commits] [PATCH] D42757: [OpenMP-RT] Fix debug string for NVPTX runtime library

Carlo Bertolli via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 31 12:10:20 PST 2018


carlo.bertolli created this revision.
carlo.bertolli added reviewers: AndreyChurbanov, grokos, Hahnfeld.
Herald added a subscriber: guansong.

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.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D42757

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


Index: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
===================================================================
--- libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
+++ libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
@@ -163,7 +163,7 @@
   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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42757.132244.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180131/43f0a7d7/attachment.bin>


More information about the Openmp-commits mailing list