How do I define shared variables that should stay in global memory? I don’t want them to be automatically copied to shared memory.
Does OpenACC support worker-level privatization of scalars arrays?
That is, can I make a scalar or an array shared among vectors in a single worker?
I saw examples of privatization for gang and vector, but not for worker.
If so, where does the variable stay? Does it go to global memory or shared memory?
In case of scalar, I saw from past topics that scalar variable are allocated in register for each vector by default. However, I have many scalar variables that are shared in a worker or gang and I don’t want them to use up the register.
Is there any possibilities of slow-down if cache directive is called frequently?