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
732 B
732 B
OpenACC in Flang
.. contents::
:local:
Intentional deviation from the specification
- The end directive for combined construct can omit the
loopkeyword. - An
!$acc routinewith no parallelism clause is treated as if theseqclause was present. !$acc end loopdoes not trigger a parsing error and is just ignored.- The restriction on
!$acc datarequired clauses is emitted as a portability warning instead of an error as other compiler accepts it.