You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch removes from the list of allowed clauses for several compound
constructs those that are specifically disallowed by the OpenMP spec. In
particular, the following restrictions are followed:
- (regarding combined constructs) If _directive-name-A_ is `target`, the
`copyin` clause must not be specified.
- (regarding composite constructs) If _directive-name-A_ is `distribute`, the
`ordered` clause must not be specified.
These restrictions are listed in the OpenMP Specification version 5.2, sections
17.4 and 17.5.
Copy file name to clipboardExpand all lines: flang/test/Semantics/OpenMP/ordered03.f90
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ subroutine sub1()
52
52
end do
53
53
!$omp end target parallel do
54
54
55
+
!ERROR: ORDERED clause is not allowed on the TARGET TEAMS DISTRIBUTE PARALLEL DO directive
55
56
!$omp target teams distribute parallel do ordered(1)
56
57
do i =1, N
57
58
!ERROR: An ORDERED construct with the DEPEND clause must be closely nested in a worksharing-loop (or parallel worksharing-loop) construct with ORDERED clause with a parameter
0 commit comments