[Omp] How to declare non-static local variables as private in the dynamic extent of a parallel region?

Mats Brorsson matsbror at imit.kth.se
Sun Apr 3 09:56:40 PDT 2005


This would be a good homework question.

Mats

Open MP wrote:
> 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

-- 
Professor, Computer Architecture
http://www.imit.kth.se/~matsbror




More information about the Omp mailing list