Relax the Order of Floating-Point Operations (-Xsfp-relaxed)
-Xsfp-relaxed
)Include the
-Xsfp-relaxed
option in your command line to direct the
Intel® oneAPI
to relax the order of arithmetic floating-point operations using a balanced tree hardware implementation.
DPC++/C++
CompilerImplementing a balanced tree structure leads to more efficient hardware at the expense of numerical variation in results.
To implement this optimization control, your program must be able to tolerate small variations in the floating-point results.
Example
To direct the
Intel® oneAPI
to execute a balanced tree hardware implementation, invoke the following command:
DPC++/C++
Compilerdpcpp -fintelfpga -Xshardware -Xsfp-relaxed <source_file>.cpp
For more information, refer to
Optimizing Floating-Point Operations.