[Openmp-commits] [PATCH] D111950: [OpenMP][FIX] Query proper thread ID information to support nesting
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 27 16:19:07 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGef922c692fdb: [OpenMP][FIX] Query proper thread ID information to support nesting (authored by jdoerfert).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111950/new/
https://reviews.llvm.org/D111950
Files:
openmp/libomptarget/DeviceRTL/src/Workshare.cpp
Index: openmp/libomptarget/DeviceRTL/src/Workshare.cpp
===================================================================
--- openmp/libomptarget/DeviceRTL/src/Workshare.cpp
+++ openmp/libomptarget/DeviceRTL/src/Workshare.cpp
@@ -114,14 +114,10 @@
////////////////////////////////////////////////////////////////////////////////
// Support for Static Init
- static void for_static_init(int32_t gtid, int32_t schedtype,
+ static void for_static_init(int32_t, int32_t schedtype,
int32_t *plastiter, T *plower, T *pupper,
ST *pstride, ST chunk, bool IsSPMDExecutionMode) {
- // When IsRuntimeUninitialized is true, we assume that the caller is
- // in an L0 parallel region and that all worker threads participate.
-
- // Assume we are in teams region or that we use a single block
- // per target region
+ int32_t gtid = omp_get_thread_num();
int numberOfActiveOMPThreads = omp_get_num_threads();
// All warps that are in excess of the maximum requested, do
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111950.382844.patch
Type: text/x-patch
Size: 1056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211027/f6b99b99/attachment-0001.bin>
More information about the Openmp-commits
mailing list