Does OpenMP support the theft mechanism?

I work with gcc-4.7.4 compiler sources. I need to learn how OpenMP libraries work, and I read the documentation for the different versions of OpenMP, and I did not find any information about the wok theft mechanism. Is it true that OpenMP does not support the theft mechanism?

+6
source share
1 answer

OpenMP takes full responsibility for scheduling work from the hands of a programmer. There is no explicit support for job theft or any other scheduling policy to indicate how loop iterations should be shared between processors.

However, the OpenMP implementation can be used to steal work. This approach will be fully suitable for the explicit task construct supported by OpenMP. Similarly, an implementation may choose a different planning approach.

I read that the gcc implementation uses theft of work, but this is not what I learned, and I could be wrong.

+4
source

All Articles