ftinetti wrote:Sorry to bother... it's that I think that the first case given in
Code: Select all
Thread 0 Thread 1 Thread 2
1,2,3 4,5,6 7
1,2,3 4,5 6,7
should not happen if schedule(static,omp_get_num_threads( ))
(where the number of threads is explicitly given).
If the chunksize is specified as in schedule(static,3), then the spec is still not entirely clear, but the note you refer to implies that the intention is to mandate the first case (i.e there is at most one chunk with fewer than chunksize iterations) rather than the second.
In any case, if you really care which which thread executes which iterations (and I cannot think of many instances when you would), you should assign them explicitly rather than use the schedule clause!