Performance issue with @fastmath and vectorization

deXtoRious via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Nov 12 02:30:18 PST 2016


On Saturday, 12 November 2016 at 10:10:44 UTC, Johan Engelen 
wrote:
> On Saturday, 12 November 2016 at 00:03:16 UTC, dextorious wrote:
>>
>> Also, while on the subject, is there a way to force LDC to 
>> apply the relaxed floating point model to the entire program, 
>> rather than individual functions (the equivalent of 
>> --fast-math)?
>
> Not yet. If you really think this has value, please file an 
> issue for it on GH.
> It will be easy to add it to LDC.
>
> -Johan

Will do. The syntax Nicholas Wilson mentioned previously does 
make it easier to apply the attribute to multiple functions at 
once, but in many cases numerical code is written with the 
uniform assumption of the relaxed floating point model, so it 
seems much more appropriate to set it at the compiler level in 
those cases. It would also simplify benchmarking.


More information about the digitalmars-d-ldc mailing list