Re: [PATCH] Change omp for static non-chunk computation (PR libgomp/49490)

2011-06-22 Thread Richard Henderson
On 06/22/2011 11:13 AM, Jakub Jelinek wrote: > Richard, do you agree with this? > > Bootstrapped/regtested on x86_64-linux and i686-linux. > > 2011-06-22 Jakub Jelinek > > PR libgomp/49490 > * omp-low.c (expand_omp_for_static_nochunk): Only > use n ceil/ nthreads size for th

[PATCH] Change omp for static non-chunk computation (PR libgomp/49490)

2011-06-22 Thread Jakub Jelinek
Hi! As has been reported, we don't divide the work for schedule(static) loops very well. E.g. for 33 iterations with 8 threads, we give 5 iterations to the first 6 threads, 3 iterations to the 7th thread and 0 iterations to the last thread in the team. The reason for that is the q = n / n