Developer Guide

Contents

Reduce Floating-Point Rounding Operations (
-Xsfpc
)

Include the
-Xsfpc
option in your
clang++
command to direct the
Intel® oneAPI
DPC++/C++
Compiler
to remove intermediary floating-point rounding operations and conversions whenever possible and to carry additional bits to maintain precision.
Implementing this optimization control also changes the rounding mode. It rounds towards zero only at the end of a chain of floating-point arithmetic operations (that is, multiplications, additions, and subtractions).
Example
To direct the
Intel® oneAPI
DPC++/C++
Compiler
to reduce the number of rounding operations, invoke the following command:
dpcpp -fintelfpga -Xshardware -Xsfpc <source_file>.cpp
For more information about rounding operations, refer to Optimize Floating-point Operation.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.