Skip to content

Commit ab9762a

Browse files
Revert "[nfc][libomptarget] Remove SHARED annotation from local variables"
This reverts commit 0e9374e. Revert D73239. It fails some local testing, cause presently unknown
1 parent a69c26a commit ab9762a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/libomptarget/deviceRTLs/common/src/reduction.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static int32_t nvptx_teams_reduce_nowait(int32_t global_tid, int32_t num_vars,
230230
: /*Master thread only*/ 1;
231231
uint32_t TeamId = GetBlockIdInKernel();
232232
uint32_t NumTeams = GetNumberOfBlocksInKernel();
233-
volatile bool IsLastTeam;
233+
SHARED volatile bool IsLastTeam;
234234

235235
// Team masters of all teams write to the scratchpad.
236236
if (ThreadId == 0) {
@@ -423,8 +423,8 @@ EXTERN int32_t __kmpc_nvptx_teams_reduce_nowait_v2(
423423
: /*Master thread only*/ 1;
424424
uint32_t TeamId = GetBlockIdInKernel();
425425
uint32_t NumTeams = GetNumberOfBlocksInKernel();
426-
unsigned Bound;
427-
unsigned ChunkTeamCount;
426+
SHARED unsigned Bound;
427+
SHARED unsigned ChunkTeamCount;
428428

429429
// Block progress for teams greater than the current upper
430430
// limit. We always only allow a number of teams less or equal

0 commit comments

Comments
 (0)