This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sun, Apr 08, 2012 at 08:10:39PM +0200, Thomas Koenig wrote:This is a very strong statement.I tried to find any generic guidelines regarding when forall is preferable to OpenMP parallelisation for simple loops, but couldn't find any.For gfortran, the general guideline is to avoid forall. It does not parallelize on its own. It is likely not to be any better than the equivalent DO loop, and sometimes it is much worse.
Why is this? Is it a "design feature" of the compiler or simply because forall is poorly implemented in gfortran right now?
subroutine foo(a,b) integer, pointer :: a(:), b(:) A = B ! Or something similar with FORALL
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |