|
|
|
|
|
by orlp
1434 days ago
|
|
> By default, in GNU mode, gcc will happily emit FMA at -O3. I had no idea that gcc was in 'GNU mode' by default, and that specifying -std would turn that off. I always assumed it just had a default standard version that is (very) irregularly incremented. > I would argue that it would have been fortunate if FMA was disabled by default. I agree, and (outside of my earlier ignorance of GNU mode) it is most everywhere. My 'unfortunate' wasn't aimed at compilers per se, but rather at (unavoidable) the non-commutative and associative nature of floating point. I do wish that it was easier to specify at a per-file or per-function level that emitting FMA / performing algebraic and other non-bit-for-bit reproducible optimizations is ok. |
|