[Openmp-commits] [openmp] c060c63 - [OpenMP][NVPTX] Fix an error in configuring #teams and #threads

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 8 08:07:47 PDT 2021


Author: Shilei Tian
Date: 2021-10-08T11:07:43-04:00
New Revision: c060c634ef397c23cd2d7c72e02c0707ed10a92a

URL: https://github.com/llvm/llvm-project/commit/c060c634ef397c23cd2d7c72e02c0707ed10a92a
DIFF: https://github.com/llvm/llvm-project/commit/c060c634ef397c23cd2d7c72e02c0707ed10a92a.diff

LOG: [OpenMP][NVPTX] Fix an error in configuring #teams and #threads

It must be a copy mistake.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D111407

Added: 
    

Modified: 
    openmp/libomptarget/plugins/cuda/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
index 931ab12918863..966c42ad05e13 100644
--- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -748,7 +748,7 @@ class DeviceRTLTy {
         DeviceData[DeviceId].ThreadsPerBlock) {
       DP("Default number of threads exceeds device limit, capping at %d\n",
          DeviceData[DeviceId].ThreadsPerBlock);
-      DeviceData[DeviceId].NumTeams = DeviceData[DeviceId].ThreadsPerBlock;
+      DeviceData[DeviceId].NumThreads = DeviceData[DeviceId].ThreadsPerBlock;
     }
 
     return OFFLOAD_SUCCESS;


        


More information about the Openmp-commits mailing list