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 4e6b822 commit 59be4b4Copy full SHA for 59be4b4
openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
@@ -37,7 +37,8 @@ __device__ static bool IsWarpMasterActiveThread() {
37
unsigned long long Mask = getActiveThreadsMask();
38
unsigned long long ShNum = WARPSIZE - (getThreadId() % WARPSIZE);
39
unsigned long long Sh = Mask << ShNum;
40
- return Sh == 0;
+ // Truncate Sh to the 32 lower bits
41
+ return (unsigned)Sh == 0;
42
}
43
// Return true if this is the master thread.
44
__device__ static bool IsMasterThread() {
0 commit comments