[Omp] shared variable
Gerhard Theurich
theurich at nccs.gsfc.nasa.gov
Wed Nov 5 08:26:05 PST 2003
Baris,
Not sure if that is what you are seeing, but depending on what system
you are on you will see your spawned OpenMP threads as separate entries
in the process list, all reporting to be of the same size. However,
physical memory pages are shared between these separate entities but
counted against all of them individually by most tools. You should have
no problem running your larger applications since, regardless of what
your tool is suggesting, you are only holding on to 1GB of physical
memory. What machine/OS are you working on?
Gerhard
Baris M Kazar wrote:
>
> hi,- i have a question about static allocation of shared variable. i saw
> that when i declared a shared variable, then it got copied to all
> processors. am i supposed to use a directive or something else to avoid
> this? i need this because let's say when my memory footprint is 1GB on one
> processor, i donot want to have a memory footprint of 1GB * n (where n is
> the number of processors) for shared variables. this prevents me to go up
> for larger problems. i checked web and openmp.org and could not fins
> anything.
>
> is there a way to ask this question to the ARB members directly first not
> to bog everybody in the list? i searched the web and openmp.org web site
> regarding this question but could not find anything.
>
> thanks in advance,
> best regards,
> baris
>
More information about the Omp
mailing list