sigutils icon indicating copy to clipboard operation
sigutils copied to clipboard

Release optimization options

Open antoniovazquezblanco opened this issue 2 years ago • 1 comments

Currently -O3 -ffast-math -s for release builds. Do we want to throw it ot the window and use -Ofast?

https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

antoniovazquezblanco avatar Apr 04 '23 11:04 antoniovazquezblanco

I completely forgot about -ffast-math (maybe because I always build in debug mode), and now I am worried about it. While nobody actually complained, -ffast-math is a delicate subject in the sense that reorders math instructions in a way that is not completely IEEE-compliant. This may affect stuff like Kahan summations, in which the order is important.

I am leaving this issue open so I do not forget to look into it. But some thorough testing will be necessary here.

BatchDrake avatar Apr 12 '23 11:04 BatchDrake