[fpc-pascal] Common OpenMP syntax?
Michael Van Canneyt
michael at freepascal.org
Wed Jul 26 12:00:55 CEST 2006
On Wed, 26 Jul 2006, Vinzent Hoefler wrote:
> On Wednesday 26 July 2006 09:46, Michael Van Canneyt wrote:
> > It seems obvious to me that a global function can be called in
> > parallel at any time. The compiler can perfectly detect whether a
> > global function writes to variables outside it's own scope, in which
> > case it's probably a no-no to paralellize the function.
> Hey, you're trying to put more burden on the compiler here as the spec
> even allows, I'd say.
> Don't go on or you'll end up with the requirement for compile time
> dead-lock detection. :)
Well, my statement is moderate in the sense that the compiler does this
anyway already (see the hints/warnings about unused params/vars);
let's use this information as much as we can. To avoid more difficult
detections such as possible dead-locks, I would let the programmer
add some keywords...
More information about the fpc-pascal