Skip to content

Commit 0d77978

Browse files
authored
[flang][doc] Added remark about array element references in data clauses. (#72332)
1 parent 26dc765 commit 0d77978

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flang/docs/OpenACC.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ local:
2525
logical expression.
2626
* `!$acc routine` directive can be placed at the top level.
2727
* `!$acc cache` directive accepts scalar variable.
28+
29+
## Remarks about incompatibilities with other implementations
30+
* Array element references in the data clauses are equivalent to array sections
31+
consisting of this single element, i.e. `copyin(a(n))` is equivalent to
32+
`copyin(a(n:n))`. Some other implementations have treated it as
33+
`copyin(a(:n))`, which does not correspond to OpenACC spec – Flang does not
34+
support this interpretation of an array element reference.

0 commit comments

Comments
 (0)