Array Expression to Do Loop[MESSAGE NOT SCANNED]
Tim Prince
TimothyPrince@sbcglobal.net
Fri Dec 5 19:59:00 GMT 2008
Paul Keir wrote:
> The purpose of this is to parallelise the individual array expressions;
> using OpenMP on the loops.
>
I don't see expansion of f90 expressions as a useful means for applying
OpenMP, even under current practice. In most cases, changing legacy code
to array syntax is a step in the right direction.
Under current practice, it is useful to identify the one (highest
possible) level of iteration which should be written as omp parallel do,
and use as much array syntax as possible for the rest.
While forall() doesn't help with performance, it's easy to change directly
into equivalent effective omp parallel do, when this is useful.
http://sites.google.com/site/tprincesite/levine-callahan-dongarra-vectors
It may be interesting to speculate on how to apply co-arrays to existing
code, once the time comes.
More information about the Fortran
mailing list