[Omp] Threadprivate fortran90 Module
Meadows, Lawrence F
lawrence.f.meadows at intel.com
Fri Jan 6 10:06:03 PST 2006
Certainly a fortran 90 pointer variable can be threadprivate.
And allocatables can be threadprivate. By default, the threadprivate
copies will be unallocated (for allocatable) or undefined (for
pointer), so it is your responsibility to allocate them on the
first parallel region. Subject to some complicated rules in section
2.8.2 of the OpenMP 2.5 specification, the threadprivate copies will
retain their values across parallel region boundaries.
>-----Original Message-----
>From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org]
>On Behalf Of Donald Kenzakowski
>Sent: Friday, January 06, 2006 8:41 AM
>To: Omp at openmp.org
>Subject: [Omp] Threadprivate fortran90 Module
>
>Is it possible to a fotran90 module of pointer variables as
>threadprivate?
>
>In this manner the module becomes sort of a dynamic common block.
>I have seen examples in the "Practical Programming" book on the latter,
>but not for use of module variables.
>For example:
>
>module usarry
> real,allocatable,dimension(:,:):: wk1, wk2
>end module usarry
>
>Thanks
>Don
>
>
>_______________________________________________
>Omp mailing list
>Omp at openmp.org
>http://openmp.org/mailman/listinfo/omp_openmp.org
>
More information about the Omp
mailing list