Skip to content

Commit bdf8c39

Browse files
authored
[smoke-dev] flang-273759 - fix undefined omp_q (#2289)
1 parent 7a4ab77 commit bdf8c39

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/smoke-dev/flang-273759/flang-273759.f95

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
! example of simple Fortran AMD GPU offloading
22
program main
3+
implicit none
34
parameter (nsize=1000)
45
real a(nsize), b(nsize), c(nsize)
5-
integer i
6+
integer i, nsize
67

78
do i=1,nsize
89
a(i)=0
@@ -24,9 +25,10 @@ program main
2425
! call exit(1)
2526
end
2627
subroutine foo(a,b,c)
28+
implicit none
2729
parameter (nsize=1000)
2830
real a(nsize), b(nsize), c(nsize)
29-
integer i
31+
integer i, omp_q, nsize
3032
!$omp target map(from:a) map(to:b,c) depend(out:omp_q)
3133
!$omp parallel do
3234
do i=1,nsize

0 commit comments

Comments
 (0)