We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9edf4 commit 0153ab6Copy full SHA for 0153ab6
openmp/libomptarget/DeviceRTL/src/Parallelism.cpp
@@ -54,7 +54,11 @@ uint32_t determineNumberOfThreads(int32_t NumThreadsClause) {
54
if (NThreadsICV != 0 && NThreadsICV < NumThreads)
55
NumThreads = NThreadsICV;
56
57
- // Round down to a multiple of WARPSIZE since it is legal to do so in OpenMP.
+ // SPMD mode allows any number of threads, for generic mode we round down to a
58
+ // multiple of WARPSIZE since it is legal to do so in OpenMP.
59
+ if (mapping::isSPMDMode())
60
+ return NumThreads;
61
+
62
if (NumThreads < mapping::getWarpSize())
63
NumThreads = 1;
64
else
0 commit comments