Optimization of gfortran for execution speed

Andrew Pinski pinskia@physics.uc.edu
Thu Oct 20 18:13:00 GMT 2005


On Oct 20, 2005, at 12:07 PM, THOMAS Paul Richard 169137 wrote:

> real, dimension(12) :: x, y
> real                :: z
> do i = 1, 10000000
>   z = dot_product(x,y)
> end do
> end

A way to speed/fixing this up, is to make struct array1_real4 for each 
array
at the beginning of the function, even though they might not be used.
You should be able to let DCE do its job of cleanuping up unused 
structs.


Note you should test to make sure this speeds up other programs that 
just
small benchmarks then this.

-- Pinski



More information about the Fortran mailing list