Nvc++: disable FMA generation in host code

Hi,

Is there a way to disable generation of FMA instructions in host code with nvc++?
With gcc and/or clang, this can be done with the flag -ffp-contract=off.

Thanks,
Ben

-Mnofma

% nvc++ -help -Mfma
-M[no]fma           Enable (disable) generation of FMA instructions

Not sure why it’s not listed in our docs. It’s there for the -gpu flag, but not the host “-M” flags, I’ll look into that.

Note that at higher level opts, like -Ofast, there may still be some FMA generation.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.