Re: Vectorizing HIRLAM 2: One out of the "unhandled data-ref" garbage bin :-)

2005-10-21 Thread Dorit Naishlos
[EMAIL PROTECTED] wrote on 21/10/2005 03:19:57 PM: > L.S., > > This code: > > SUBROUTINE S(A, B, N) > DIMENSION A(N), B(N) > READ*,Z,B > DO I = 1, N > A(I) = Z * B(I) > ENDDO > PRINT*,A > END > > when compiled thusly: > > $ gfortran -g -S -O

Re: Vectorizing HIRLAM 2: One out of the "unhandled data-ref" garbage bin :-)

2005-10-21 Thread Dorit Naishlos
> > On Oct 21, 2005, at 9:19 AM, Toon Moene wrote: > > > L.S., > > > > This code: > > > > SUBROUTINE S(A, B, N) > > DIMENSION A(N), B(N) > > READ*,Z,B > > DO I = 1, N > > A(I) = Z * B(I) > > ENDDO > > PRINT*,A > > END > > > > when compiled thus

Re: Vectorizing HIRLAM 2: One out of the "unhandled data-ref" garbage bin :-)

2005-10-21 Thread Andrew Pinski
On Oct 21, 2005, at 9:19 AM, Toon Moene wrote: L.S., This code: SUBROUTINE S(A, B, N) DIMENSION A(N), B(N) READ*,Z,B DO I = 1, N A(I) = Z * B(I) ENDDO PRINT*,A END when compiled thusly: The problem here is not really related to the vectori

Vectorizing HIRLAM 2: One out of the "unhandled data-ref" garbage bin :-)

2005-10-21 Thread Toon Moene
L.S., This code: SUBROUTINE S(A, B, N) DIMENSION A(N), B(N) READ*,Z,B DO I = 1, N A(I) = Z * B(I) ENDDO PRINT*,A END when compiled thusly: $ gfortran -g -S -O3 -ftree-vectorize -ftree-vectorizer-verbose=2 -msse2 vect2.f draws the following "no