URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 273 |
Rev 338 |
! { dg-do run }
|
! { dg-do run }
|
|
|
use omp_lib
|
use omp_lib
|
|
|
integer (kind = omp_nest_lock_kind) :: lock
|
integer (kind = omp_nest_lock_kind) :: lock
|
logical :: l
|
logical :: l
|
|
|
l = .false.
|
l = .false.
|
call omp_init_nest_lock (lock)
|
call omp_init_nest_lock (lock)
|
!$omp parallel num_threads (1) reduction (.or.:l)
|
!$omp parallel num_threads (1) reduction (.or.:l)
|
if (omp_test_nest_lock (lock) .ne. 1) call abort
|
if (omp_test_nest_lock (lock) .ne. 1) call abort
|
if (omp_test_nest_lock (lock) .ne. 2) call abort
|
if (omp_test_nest_lock (lock) .ne. 2) call abort
|
!$omp task if (.false.) shared (lock, l)
|
!$omp task if (.false.) shared (lock, l)
|
if (omp_test_nest_lock (lock) .ne. 0) l = .true.
|
if (omp_test_nest_lock (lock) .ne. 0) l = .true.
|
!$omp end task
|
!$omp end task
|
!$omp taskwait
|
!$omp taskwait
|
if (omp_test_nest_lock (lock) .ne. 3) l = .true.
|
if (omp_test_nest_lock (lock) .ne. 3) l = .true.
|
call omp_unset_nest_lock (lock)
|
call omp_unset_nest_lock (lock)
|
call omp_unset_nest_lock (lock)
|
call omp_unset_nest_lock (lock)
|
call omp_unset_nest_lock (lock)
|
call omp_unset_nest_lock (lock)
|
!$omp end parallel
|
!$omp end parallel
|
if (l) call abort
|
if (l) call abort
|
call omp_destroy_nest_lock (lock)
|
call omp_destroy_nest_lock (lock)
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.