Skip to content

Commit

Permalink
[flang][doc] Added remark about array element references in data clau…
Browse files Browse the repository at this point in the history
…ses. (llvm#72332)
  • Loading branch information
vzakhari authored Nov 21, 2023
1 parent 26dc765 commit 0d77978
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flang/docs/OpenACC.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ local:
logical expression.
* `!$acc routine` directive can be placed at the top level.
* `!$acc cache` directive accepts scalar variable.

## Remarks about incompatibilities with other implementations
* Array element references in the data clauses are equivalent to array sections
consisting of this single element, i.e. `copyin(a(n))` is equivalent to
`copyin(a(n:n))`. Some other implementations have treated it as
`copyin(a(:n))`, which does not correspond to OpenACC spec – Flang does not
support this interpretation of an array element reference.

0 comments on commit 0d77978

Please sign in to comment.