Visible to Intel only — GUID: GUID-F938A9F1-4A44-487E-81B8-98B7C1D34804
Visible to Intel only — GUID: GUID-F938A9F1-4A44-487E-81B8-98B7C1D34804
Control Semantics of Floating-Point Operations (-fp-model=<value>)
Include the -fp-model=<value> option in your icpx command to direct the Intel® oneAPI DPC++/C++ Compiler to control the semantics of floating-point operations.
You can also use the Floating-Point Pragmas to influence the floating-point operations.
Example
icpx -fsycl -fintelfpga -Xshardware -fp-model=<value> <source_file>.cpp
where, the <value> can be one of the following values:
Value | Description |
---|---|
fast[=1|2] | Default value. Enables more aggressive optimizations on floating-point operations.
NOTE:
There is currently no difference between fast=1 and fast=2. |
precise | Disables optimizations that are not value-safe on floating-point data. |
For additional information about this flag, refer to fp-model, fp topic in the Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.