[Omp] index of work sharing directive

eric duncan Eric.Duncan at sun.com
Thu Mar 30 05:33:50 PST 2006


If you look at the OpenMP V2.5 spec, section 2.5 Loop Construct, you
will find that the variable is undefined after the loop unless a
lastprivate is used (for C: p34, lines 21-24 and for Fortran: p 35,
lines 20-21).

Patricia Bittencourt Sampaio wrote On 03/30/06 05:19,:
>  Hello!
> 
>    Does anybody know if the index variable of a work
> sharing directive (#pragma omp for or  #pragma omp
> parallel or) becomes zero after the implicit barrier
> at the end of the directive?
> 
>    I have notice this in a program, and I suppose that
> this happend with the variable I have observed as it
> is the index of a work sharing directive.
>    I have taken a look at the spec but couldn't find
> anything about it.
> 
> regards,
> 
> Patricia B. Sampaio
> ====================================
> Federal University of Rio de Janeiro 
> 
> 
> 		
> _______________________________________________________ 
> Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 
> http://br.info.mail.yahoo.com/
> _______________________________________________
> Omp mailing list
> Omp at openmp.org
> http://openmp.org/mailman/listinfo/omp



More information about the Omp mailing list