Adds the flag, `-facc-allow-default-none-scalars`. When this flag is enabled, Flang reverts to the pre-3.2 behavior: scalar variables referenced inside a `default(none)` compute region without an explicit data clause do not produce an error. Instead, Flang infers implicit data attributes for those scalars via the same implicit-copy logic applied in regions without `default(none)`. - Adds tests and documentation. - Makes an explicit extensions doc for OpenACC to mirror the OpenMP extensions doc. - Moves the intentional deviations to from the standard to the extensions doc.
1.2 KiB
1.2 KiB
OpenACC in Flang
---
local:
---
Intentional deviation from the specification
See OpenACC-extensions.md for the full list of extensions supported by Flang. Flang also adds the following restrictions:
- The OpenACC specification does not prohibit the same variable from appearing
in multiple data clauses, but this is disallowed for variables appearing in
reductionclauses. - The OpenACC specification does not prohibit the same variable from appearing
multiple times in a
use_deviceclause on ahost_dataconstruct, but this is disallowed.
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 tocopyin(a(n:n)). Some other implementations have treated it ascopyin(a(:n)), which does not correspond to OpenACC spec – Flang does not support this interpretation of an array element reference.