blob: 70a6f5fc529a42a0c047952e6a181b9cb37116ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
! Testing the Semantics of tile
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=51
subroutine non_perfectly_nested_loop_behind
implicit none
integer i, j
!ERROR: Canonical loop nest must be perfectly nested.
!$omp tile sizes(2,2)
do i = 1, 5
do j = 1, 42
print *, j
end do
print *, i
end do
end subroutine
subroutine non_perfectly_nested_loop_before
implicit none
integer i, j
!ERROR: The SIZES clause has more entries than there are nested canonical loops.
!$omp tile sizes(2,2)
do i = 1, 5
print *, i
do j = 1, 42
print *, j
end do
end do
end subroutine
|