FIAS . Impressum . Privacy

compiler flag to use fma with Vc

Matthias Kretz [please enable javascript to see the address]
Mon Feb 8 11:28:48 CET 2016


Hi Raman,

there's nothing you need to do. The compiler fuses multiplications and 
additions/subtractions automatically, unless you explicitly disable this 
feature with a compiler flag.

All the compiler needs to know is that the target architecture supports FMA 
instructions. The Vc cmake scripts make sure this is the case.

You can disassemble the resulting binaries to double check that FMA 
instructions are emitted.

Cheers,
  Matthias

On Tuesday, February 02, 2016 11:12:03 AM Raman Sehgal wrote:
> Hello Matthias and others,
> Is it possible to use FMA with Vc,
> if yes then what all compiler flags i have to give provide.
> 
> 
> 
> Regards,
> Raman

-- 
──────────────────────────────────────────────────────────────────────────
 Dr. Matthias Kretz                                https://kretzfamily.de
 GSI Helmholtzzentrum für Schwerionenforschung             https://gsi.de
 SIMD easy and portable                     https://github.com/VcDevel/Vc
──────────────────────────────────────────────────────────────────────────


More information about the Vc mailing list
FIAS . Impressum . Privacy