Re: BLOCK WAS VECTORIZED.
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: BLOCK WAS VECTORIZED.         

Group: comp.lang.fortran · Group Profile
Author: Steve Lionel
Date: Sep 20, 2008 07:22

Fatemeh wrote:
> Dear all
>
> when I compile my code I see the following lines:
>
> main-goodformat2.f90(71): (col. 7) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(71): (col. 7) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(82): (col. 8) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(82): (col. 8) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(143): (col. 7) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(144): (col. 7) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(144): (col. 7) remark: BLOCK WAS VECTORIZED.
> main-goodformat2.f90(147): (col. 7) remark: BLOCK WAS VECTORIZED.
>
> Can these lines cause error in the result?

No - they are optimization information messages from the compiler
letting you know that it figured out it could use vector instructions to
perform as many as four operations in one instruction. That they appear
by default is somewhat historical.

You are using the Intel compiler, which has offered vectorization for
many years, but in the past you had to explicitly specify an option to
request use of the vector instructions. As of version 10 on x64, and
the upcoming version 11 on IA-32, the compiler assumes it is ok to
generate SSE2 instructions which have been supported since the Pentium
4. All x64 processors and all Intel-based Mac processors support SSE2,
for IA-32 the compiler has a switch to restrict it to generic "Pentium"
instructions (-mia32 on Linux, /arch:ia32 on Windows.)

I can understand your surprise at seeing messages like this when the
normal course of events is no messages unless there is an error. I
expect we'll see more questions such as yours in the future and I'll
suggest to the product team that we turn off the vectorization messages
by default. If you want to turn them off, use -vec-report0 on Linux and
Mac, and /Qvec-report0 on Windows.

--

Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
no comments
diggit! del.icio.us! reddit!