[gomp] Challenges in Implementing OpenMP
Paolo Bonzini
paolo.bonzini@polimi.it
Thu Oct 14 12:40:00 GMT 2004
> Yes, that was also my idea. With nested function, you get also variable sharing
> for free, while you still have to handle private variables somehow (you can
> mark some local variables as private of the thread, that is each thread has its
> own version): a way could be to pass them as arguments to the nested function.
You can reference them from within the nested function, and assign them
to local copies before using them.
Paolo
More information about the Gcc
mailing list