This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimization of gfortran for execution speed



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]