Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

ffp-contract

Controls when the compiler is permitted to form fused floating-point operations, such as fused multiply-add (FMA). Fused operations are allowed to produce more precise results than performing the individual operations separately.

Syntax

Linux:

-ffp-contract=keyword

Windows:

None

Arguments

keyword

Possible values are:

fast

Fuses floating-point operations across statements.

on

Fuses floating-point operations within the same statement.

off

Does not fuse floating-point operations.

Default

-ffp-contract=fast

Fuses floating-point operations across statements.

However, if option -fp-model=strict is specified, the default is -ffp-contract=off.

Description

This option controls when the compiler is permitted to form fused floating-point operations, such as fused multiply-add (FMA). Fused operations are allowed to produce more precise results than performing the individual operations separately.

IDE Equivalent

None

Alternate Options

None

See Also