(j3.2006) Questions about relationship between BLOCK and DO CONCURRENT
Thu Jul 17 19:19:34 EDT 2008
> Sure. Why would the rules be different from an ordinary DO loop?
Indeed, CONCURRENT is only a hint (promise) to the compiler, not an action
statement. If any compiler attempts to parallelize a loop with "allocate (
type(C_extension(i)) :: A )" in it we should give it some honorary plaque. I
thought it was a syntax error by Van until Bill actually explained what it
was doing :-)
On Thursday 17 July 2008 16:14, Bill Long wrote:
> Allocation of a polymorphic object to have a parameterized derived
> type! ?You can't possibly have any toes left at this point.
> > do concurrent ( i=... )
> > ? block
> > ? ? class(C), allocatable :: A
> > ? ? ...
> > ? ? allocate ( type(C_extension(i)) :: A )
> > ? ? ...
> > ? end block
> > end do
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ Lawrence Livermore National Laboratory
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
More information about the J3