OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [threadprivate1.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 735 jeremybenn
! { dg-do run }
2
! { dg-require-effective-target tls_runtime }
3
 
4
module threadprivate1
5
  double precision :: d
6
!$omp threadprivate (d)
7
end module threadprivate1
8
 
9
!$ use omp_lib
10
  use threadprivate1
11
  logical :: l
12
  l = .false.
13
!$omp parallel num_threads (4) reduction (.or.:l)
14
  d = omp_get_thread_num () + 6.5
15
!$omp barrier
16
  if (d .ne. omp_get_thread_num () + 6.5) l = .true.
17
!$omp end parallel
18
  if (l) call abort ()
19
end
20
 
21
! { dg-final { cleanup-modules "threadprivate1" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.