blob: 158b030906e07b71295766275059e353850a0d5b (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
! Testing the Semantic failure of forming loop sequences under regular OpenMP directives
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=60
subroutine loop_transformation_construct3
implicit none
integer, parameter :: i = 5
integer :: x
integer :: v(i)
!ERROR: This construct applies to a loop nest, but has a loop sequence of length 2
!$omp do
!$omp fuse looprange(1,2)
do x = 1, i
v(x) = x * 2
end do
do x = 1, i
v(x) = x * 2
end do
do x = 1, i
v(x) = x * 2
end do
!$omp end fuse
!$omp end do
end subroutine
subroutine loop_transformation_construct4
implicit none
integer, parameter :: i = 5
integer :: x
integer :: v(i)
!ERROR: This construct applies to a loop nest, but has a loop sequence of length 2
!$omp tile sizes(2)
!$omp fuse looprange(1,2)
do x = 1, i
v(x) = x * 2
end do
do x = 1, i
v(x) = x * 2
end do
do x = 1, i
v(x) = x * 2
end do
!$omp end fuse
!$omp end tile
end subroutine
|