[Omp] How to declare non-static local variables as private in
thedynamic extent of a parallel region?
Shah, Sanjiv
sanjiv.shah at intel.com
Sun Apr 3 12:40:15 PDT 2005
They already are private, by virtue of being stack allocated.
Sanjiv
--
Sanjiv, 217-403-4244
-----Original Message-----
From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org] On Behalf
Of Open MP
Sent: Sunday, April 03, 2005 11:29 AM
To: Omp at openmp.org
Subject: [Omp] How to declare non-static local variables as private in
thedynamic extent of a parallel region?
Dear all,
It seems to me that the 'threadprivate' clause only applies to
global-lifetime objects(global and static local in C/C++). Then how
can I declare general local variables as private in the dynamic extent
of a parallel region?
Thanks.
An OpenMP fan
_______________________________________________
Omp mailing list
Omp at openmp.org
http://openmp.org/mailman/listinfo/omp_openmp.org
More information about the Omp
mailing list