[fpc-devel] Parallel Computing

Florian Klaempfl florian at freepascal.org
Mon Nov 3 16:41:01 CET 2008


Michael Schnell schrieb:
> 
>> For a big vector operation the number of used threads should be
>> adapted to the memory architecture, 
> With the C #pragma opm_....  this can be done statically by the
> programmer using the "schedule" keyword, defining "chunks" (there seem
> to be more sophisticated ways using the "static" "dynamic" and "guided"
> keywords, but I am in no way an expert on this
>> for computational intensive
>> applications like Mandelbrot the number of threads must be adapted to
>> the number of available virtual cores.
> 
> With the C #pragma opm_....  this is done automatically ("dynamic"). The
> OpenMP library seems to do this and assign the loop runs to the threads.
> This seems to be the default behavior.

I looked into this and it doesn't offer anything sophisticated what
cannot be done by simple classes and doesn't solve the real problems of
MT like syncing.



More information about the fpc-devel mailing list