Re: gains from vectorization



In article <1118166052.339063.314050@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"student" <adarsh@xxxxxxxxxxxxx> writes:
> I am working with a g95 compiler and I need to increase the efficiency
> of my code.

You say "a g95 compiler", it would be helpful if you identified
the exact g95 compiler you are using. Try the --version option.

> one of the things that I came across while browsing the
> archives of this group is vectorization. However, after enabling that
> option using the flag -ftree-vectorize, I don't seem to be making any
> significant gains in performance.

-ftree-vectorize may help, but it depends on my observation above.

> Can anyone suggest something? Is it also something that's processor
> dependent? If that's the case how would I know if my processor can
> do that pipelining operation? uname -a on my system gives the
> following output:
>
> Linux s5 2.6.5-7.151-smp #1 SMP Fri Mar 18 11:31:21 UTC 2005 i686 i686
> i386 GNU/Linux

Your first step in making your code run faster is understanding where
the bottlenecks in performance occur. Try using the profiler to look
at the execution of the program.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.