[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-06 Thread nadavhalahmi560 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #10 from Nadav Halahmi --- (In reply to Dominique d'Humieres from comment #9) > I don't know if the test is coming from a real world problem. The modified > test > > program power > implicit none > > real :: sum, sum1, n,

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-05 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 Dominique d'Humieres changed: What|Removed |Added Resolution|--- |INVALID

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-03 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #8 from Dominique d'Humieres --- > So gnu is indeed faster for real(8), but the result was changed. What OS are you using? In any sensible library REAL(4° should be faster than REAL(8). > notice the result was also changed

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-03 Thread nadavhalahmi560 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #7 from Nadav Halahmi --- (In reply to Dominique d'Humieres from comment #6) > On a MacOS, Corei9, 2.4Ghz, the program runs in ~1s, almost indpendtly of > the option level. > > This PR remind me an old problem in which the

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-02 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #6 from Dominique d'Humieres --- On a MacOS, Corei9, 2.4Ghz, the program runs in ~1s, almost indpendtly of the option level. This PR remind me an old problem in which the transcendental functions were almost slower for REAL(4) then

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-02 Thread nadavhalahmi560 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #5 from Nadav Halahmi --- (In reply to Richard Biener from comment #3) > Might be interesting to see whether ifort does any expression simplification > here. Can you share the produced assembly? ifort pow.f90 -O3 -no-vec -S -o

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-02 Thread nadavhalahmi560 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #4 from Nadav Halahmi --- (In reply to Richard Biener from comment #3) > Might be interesting to see whether ifort does any expression simplification > here. Can you share the produced assembly? gfortran pow.f90 -O3

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #3 from Richard Biener --- Might be interesting to see whether ifort does any expression simplification here. Can you share the produced assembly?

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-01 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #2 from anlauf at gcc dot gnu.org --- If you do not care about correct rounding, you can replace sum = sum + (i ** (0.05 + n)) by sum = sum + exp (log (real(i)) * (0.05 + n)) I think __builtin_powf and powf do care. I do

[Bug fortran/100855] pow run time gfortran vs ifort

2021-06-01 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 kargl at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Last reconfirmed|