[Openmp-commits] [PATCH] D111407: [OpenMP][NVPTX] Fix an error in configuring #teams and #threads
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 8 08:08:02 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc060c634ef39: [OpenMP][NVPTX] Fix an error in configuring #teams and #threads (authored by tianshilei1992).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111407/new/
https://reviews.llvm.org/D111407
Files:
openmp/libomptarget/plugins/cuda/src/rtl.cpp
Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -748,7 +748,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111407.378220.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211008/a1c25dbb/attachment.bin>
More information about the Openmp-commits
mailing list