[flang-commits] [flang] 0d77978 - [flang][doc] Added remark about array element references in data clauses. (#72332)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 20 18:01:42 PST 2023


Author: Slava Zakharin
Date: 2023-11-20T18:01:38-08:00
New Revision: 0d77978e75a6e287e4c74fe5763227712ce3e3ac

URL: https://github.com/llvm/llvm-project/commit/0d77978e75a6e287e4c74fe5763227712ce3e3ac
DIFF: https://github.com/llvm/llvm-project/commit/0d77978e75a6e287e4c74fe5763227712ce3e3ac.diff

LOG: [flang][doc] Added remark about array element references in data clauses. (#72332)

Added: 
    

Modified: 
    flang/docs/OpenACC.md

Removed: 
    


################################################################################
diff  --git a/flang/docs/OpenACC.md b/flang/docs/OpenACC.md
index 4c36a38f8bf5731..61038a9f13df8eb 100644
--- a/flang/docs/OpenACC.md
+++ b/flang/docs/OpenACC.md
@@ -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.


        


More information about the flang-commits mailing list