forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged main:5508516b0663 into amd-gfx:33090e83332c
Local branch amd-gfx 33090e8 Merged main:7dc3575ef2dc into amd-gfx:b2004a9a0490 Remote branch main 5508516 [mlir][sparse] retry sparse-only for cyclic iteration graphs
- Loading branch information
Showing
10 changed files
with
245 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
! RUN: %S/test_symbols.sh %s %t %f18 -fopenmp | ||
! OpenMP Version 4.5 | ||
! 2.7.1 Loop Construct | ||
! The loop iteration variable may not appear in a firstprivate directive. | ||
! A positive case | ||
|
||
!DEF: /omp_do MainProgram | ||
program omp_do | ||
!DEF: /omp_do/i ObjectEntity INTEGER(4) | ||
integer i | ||
|
||
!$omp do firstprivate(k) | ||
!DEF: /omp_do/Block1/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4) | ||
do i=1,10 | ||
print *, "Hello" | ||
end do | ||
!$omp end do | ||
|
||
end program omp_do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
! RUN: %S/test_symbols.sh %s %t %f18 -fopenmp | ||
! OpenMP Version 4.5 | ||
! 2.7.1 Loop Construct restrictions on single directive. | ||
! A positive case | ||
|
||
!DEF: /omp_do MainProgram | ||
program omp_do | ||
!DEF: /omp_do/i ObjectEntity INTEGER(4) | ||
!DEF: /omp_do/n ObjectEntity INTEGER(4) | ||
integer i,n | ||
!$omp parallel | ||
!DEF: /omp_do/Block1/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4) | ||
do i=1,10 | ||
!$omp single | ||
print *, "hello" | ||
!$omp end single | ||
end do | ||
!$omp end parallel | ||
|
||
!$omp parallel default(shared) | ||
!$omp do | ||
!DEF: /omp_do/Block2/Block1/i (OmpPrivate, OmpPreDetermined) HostAssoc INTEGER(4) | ||
!REF: /omp_do/n | ||
do i=1,n | ||
!$omp parallel | ||
!$omp single | ||
!DEF: /work EXTERNAL (Subroutine) ProcEntity | ||
!REF: /omp_do/Block2/Block1/i | ||
call work(i, 1) | ||
!$omp end single | ||
!$omp end parallel | ||
end do | ||
!$omp end do | ||
!$omp end parallel | ||
|
||
end program omp_do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
! RUN: %S/test_errors.sh %s %t %f18 -fopenmp | ||
! XFAIL: * | ||
|
||
! OpenMP Version 4.5 | ||
! 2.7.1 Loop Construct | ||
! chunk_size must be a loop invariant integer expression | ||
! with a positive value. | ||
! 2.7.1 Loop Construct restrictions on single directive. | ||
|
||
|
||
program omp_do | ||
integer i, j, k | ||
integer :: a(10), b(10) | ||
a = 10 | ||
j = 0 | ||
|
||
!ERROR: INTEGER expression of SCHEDULE clause chunk_size must be positive | ||
!$omp do schedule(static, -1) | ||
do i = 1, 10 | ||
j = j + 1 | ||
b(i) = a(i) * 2.0 | ||
integer n | ||
integer i,j | ||
!$omp do | ||
do i=1,10 | ||
!ERROR: A worksharing region may not be closely nested inside a worksharing, explicit task, taskloop, critical, ordered, atomic, or master region | ||
!$omp single | ||
do j=1,10 | ||
print *,"hello" | ||
end do | ||
!$omp end single | ||
end do | ||
!$omp end do | ||
|
||
print *, j | ||
print *, b | ||
!$omp parallel default(shared) | ||
!$omp do | ||
do i = 1, n | ||
!ERROR: A worksharing region may not be closely nested inside a worksharing, explicit task, taskloop, critical, ordered, atomic, or master region | ||
!$omp single | ||
call work(i, 1) | ||
!$omp end single | ||
end do | ||
!$omp end do | ||
!$omp end parallel | ||
|
||
end program omp_do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.