9 lines
214 B
Plaintext
9 lines
214 B
Plaintext
// Reading a neighbor that another pass writes is also a race, even with no shared scalar.
|
|
// STOPS: race
|
|
DECLARE A : LIST OF INTEGER
|
|
A <- [5, 6, 7, 8]
|
|
PARALLEL FOR I <- 0 TO 3
|
|
A[I] <- A[I + 1]
|
|
NEXT I
|
|
OUTPUT A
|