https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87622

--- Comment #5 from Andreas Klein <klein at cage dot ugent.be> ---
On Wed, 17 Oct 2018, tkoenig at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87622
>
> --- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
> Some more remarks: In a benchmark, it is best to actually fill the values of
> all read variables to something defined, for example with a call to
> random_number. Also, if you generate values which you do not use later, the
> compilet may decide to remove the calculation altogether. What works well for
> this somethinh like
>
> read (*,*) i,j
> print *, a(i,j)
>
Adding initialzation removes the effect.
There is still a 20% decresed performance, but that are plausible cache 
effects.

Sorry my minimal example was to minimal. I derived the mini example from a 
big parallel linear algebra package. Now I must go throgh all 
minimalization steps, but its possible that the original error has nothing 
to do with coarrays.

Reply via email to