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] |
Hi Anton,One of the more easily understood but seldom mentioned aspects of forall is its sequential assignment definition, which is at odds with the DO (including DO CONCURRENT):
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.
Regards
Thomas
-- Tim Prince
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |