[Omp] CTOR/DTOR invocation for variables in empty
paralleldirectives?
Diego Novillo
dnovillo at redhat.com
Tue Nov 1 14:26:52 PST 2005
On Tuesday 01 November 2005 17:15, Tian, Xinmin wrote:
> If users have this type of code, the performance may not be a big
> concern for users. In general, users can always use lower optimization
> (O0 or Od), so the compiler can still generate threaded code for empty
> parallel region by not being smart to remove it.
>
Thanks. Though what I really need to clarify is whether the compiler is
*allowed* to elide that construct.
With our current implementation, GCC will remove the whole parallel
directive regardless of optimization level. No threaded code will be
generated with
#pragma omp parallel private (a)
{
}
Would the compiler be standard conforming if it converted the above into a
NOP?
Thanks.
More information about the Omp
mailing list