[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread quanhua.liu at noaa dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #9 from Quanhua Liu --- Hi Richard, It seems that I cannot add comment online to the ticket. I tried    gfortran -o z -O3 -march=native test_matrixCal.f90 -fexternal-blas -lblas -fdump-tree-optimized   time a.out 1   and   

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #8 from Steve Kargl --- On Tue, Aug 09, 2022 at 05:51:51PM +, sgk at troutmask dot apl.washington.edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 > > --- Comment #6 from Steve Kargl --- > On Tue, Aug 09, 2022

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #7 from Steve Kargl --- On Tue, Aug 09, 2022 at 05:17:57PM +, quanhua.liu at noaa dot gov wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 > > --- Comment #5 from Quanhua Liu --- > Hi Richard, > > Using

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #6 from Steve Kargl --- On Tue, Aug 09, 2022 at 05:14:16PM +, quanhua.liu at noaa dot gov wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 > > --- Comment #4 from Quanhua Liu --- > Using > gfortran -O3

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread quanhua.liu at noaa dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #5 from Quanhua Liu --- Hi Richard, Using -fexternal-blas for gfortran v10.3.0 is much slower than the method 2:   BB = transpose(B)   C = matmul(A, BB) How about on your machine? Thanks, Quanhua Liu On 8/9/2022 11:07 AM,

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread quanhua.liu at noaa dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #4 from Quanhua Liu --- Using gfortran -O3 -fexternal-blas -L/. -lblas testmatrixCal.f90 time a.out 1 real: 6.14 (s) time a.out 2 real: 5.41 It is 6 times slower than BB = transpose(B) C = matmul(A, BB) ifort doesn't

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 kargl at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread quanhua.liu at noaa dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 --- Comment #2 from Quanhua Liu --- I modified the application code (see below) and use the "method" as a control variable from command line. I use the same code for both gfortran 10.3.0 and ifort 19.0.5.281 gfortran -O3 matrixCal.f90 time

[Bug fortran/106565] Using a transposed matrix in matmul (GCC-10.3.0) is very slow

2022-08-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106565 Richard Biener changed: What|Removed |Added Last reconfirmed||2022-08-09 Known to fail|