Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling Fused Multiply-Add in CUDA under Visual Studio 2010

Tags:

cuda

I would like to compile a CUDA code with Fused Multiply-Add (FMA) operations disabled. I'm then using

Project -> Properties -> CUDA C/C++ -> Host -> Additional Compiler Options 

and typing

-fdma=false

in the Additional Compiler Options line. Is that effective in disabling FMAs?

Thank you very much in advance.

like image 602
Vitality Avatar asked Oct 19 '25 17:10

Vitality


1 Answers

Please see Options for Steering CUDA Compilation. You have a typo in your parameter but otherwise you are correct.

-fmad : Enables (disables) the contraction of floating-point multiplies and adds/subtracts into floating-point multiply-add operations (FMAD, FFMA, or DFMA). The default is -fmad=true.

like image 194
RoBiK Avatar answered Oct 22 '25 13:10

RoBiK