This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37131] inline matmul for small matrix sizes
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2010 09:15:30 -0000
- Subject: [Bug fortran/37131] inline matmul for small matrix sizes
- References: <bug-37131-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from tkoenig at gcc dot gnu dot org 2010-05-14 09:15 -------
New timings, on x86_64-unknown-linux-gnu. I split off the "invalidate"
subroutine to make sure the optimizers don't optimize this out:
ig25@linux-fd1f:/tmp> gfortran -O3 matmul.f90 invalidate.f90
ig25@linux-fd1f:/tmp> time ./a.out
matmul = 11.100311 s
subroutine with explicit interface: 2.0216932 s
unrolled subroutine with explicit interface: 1.9317064 s
inline with sum 1.9087105 s
real 0m16.971s
user 0m16.959s
sys 0m0.005s
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37131