3 ms·
One trick that I happened upon was speeding up complex multiplication (like a factor of 5) under gcc with the --enable-cx-fortran switch.
by jjgreen 5y ago
One trick that I happened upon was speeding up complex multiplication (like a factor of 5) under gcc with the --enable-cx-fortran switch.
- bruce343434 5y ago-fcx-fortran-rules Complex multiplication and division follow Fortran rules. Range reduction is done as part of complex division, but there is no checking whether the result of a complex multiplication or division is NaN + I*NaN, with an attempt to rescue the situation in that case. The default is -fno-cx-fortran-rules. [1] https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/Optimize-Options.html https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/Optimize-Option...