Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fast math flags: ENABLE_FAST_MATH, and CUDA_FAST_MATH

I've seen examples of cmake files that set flags ENABLE_FAST_MATH, and CUDA_FAST_MATH. That would seem logical in systems with CUDA installed.

But there are warnings, particularly for the 'ENABLE_FAST_MATH' option, where even the CMakeLists file comes with a built in warning "not recommended."

Are there any guidelines for setting these flags? Any idea why ENABLE_FAST_MATH would not be recommended?