Files
clang-p2996/flang/docs/OpenACC.md
Valentin Clement e8824e05e3 [flang][openacc] Relax required clauses on acc data as portability warning
Some compilers accept `!$acc data` without any clauses. For portability
reason, this patch relaxes the strict error to a simple portability warning.

Reviewed By: razvanlupusoru, vzakhari

Differential Revision: https://reviews.llvm.org/D159019
2023-08-29 14:57:50 -07:00

732 B

OpenACC in Flang

.. contents::
   :local:

Intentional deviation from the specification

  • The end directive for combined construct can omit the loop keyword.
  • An !$acc routine with no parallelism clause is treated as if the seq clause was present.
  • !$acc end loop does not trigger a parsing error and is just ignored.
  • The restriction on !$acc data required clauses is emitted as a portability warning instead of an error as other compiler accepts it.