URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.fortran/] [lastprivate1.f90] - Rev 438
Go to most recent revision | Compare with Previous | Blame | View Log
program lastprivateinteger :: icommon /c/ i!$omp parallel num_threads (4)call test1!$omp end parallelif (i .ne. 21) call abort!$omp parallel num_threads (4)call test2!$omp end parallelif (i .ne. 64) call abort!$omp parallel num_threads (4)call test3!$omp end parallelif (i .ne. 14) call abortcall test4call test5call test6call test7call test8call test9call test10call test11call test12containssubroutine test1integer :: icommon /c/ i!$omp do lastprivate (i)do i = 1, 20end doend subroutine test1subroutine test2integer :: icommon /c/ i!$omp do lastprivate (i)do i = 7, 61, 3end doend subroutine test2function ret3 ()integer :: ret3ret3 = 3end function ret3subroutine test3integer :: icommon /c/ i!$omp do lastprivate (i)do i = -10, 11, ret3 ()end doend subroutine test3subroutine test4integer :: j!$omp parallel do lastprivate (j) num_threads (4) default (none)do j = 1, 20end doif (j .ne. 21) call abortend subroutine test4subroutine test5integer :: j!$omp parallel do lastprivate (j) num_threads (4) default (none)do j = 7, 61, 3end doif (j .ne. 64) call abortend subroutine test5subroutine test6integer :: j!$omp parallel do lastprivate (j) num_threads (4) default (none)do j = -10, 11, ret3 ()end doif (j .ne. 14) call abortend subroutine test6subroutine test7integer :: icommon /c/ i!$omp parallel do lastprivate (i) num_threads (4) default (none)do i = 1, 20end doif (i .ne. 21) call abortend subroutine test7subroutine test8integer :: icommon /c/ i!$omp parallel do lastprivate (i) num_threads (4) default (none)do i = 7, 61, 3end doif (i .ne. 64) call abortend subroutine test8subroutine test9integer :: icommon /c/ i!$omp parallel do lastprivate (i) num_threads (4) default (none)do i = -10, 11, ret3 ()end doif (i .ne. 14) call abortend subroutine test9subroutine test10integer :: icommon /c/ i!$omp parallel num_threads (4) default (none) shared (i)!$omp do lastprivate (i)do i = 1, 20end do!$omp end parallelif (i .ne. 21) call abortend subroutine test10subroutine test11integer :: icommon /c/ i!$omp parallel num_threads (4) default (none) shared (i)!$omp do lastprivate (i)do i = 7, 61, 3end do!$omp end parallelif (i .ne. 64) call abortend subroutine test11subroutine test12integer :: icommon /c/ i!$omp parallel num_threads (4) default (none) shared (i)!$omp do lastprivate (i)do i = -10, 11, ret3 ()end do!$omp end parallelif (i .ne. 14) call abortend subroutine test12end program lastprivate
Go to most recent revision | Compare with Previous | Blame | View Log
