Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
foffload-fp32-prec-div
Tells the compiler to enforce correct rounding. SYCL* and other offloading languages do not follow precision IEEE 754 requirements for various applications (example: PyTorch*).
Syntax
Linux: |
-foffload-fp32-prec-div -fno-offload-fp32-prec-div |
Windows: |
-foffload-fp32-prec-div -fno-offload-fp32-prec-div |
Arguments
None
Default
-foffload-fp32-prec-div |
Enforces correct rounding. |
Description
Enables the use of a correctly rounded divide operation as defined by IEEE 754. Without this flag, the default precision requirement for divide in SYCL is 2.5 units-in-the-last-place (ULP).
If you specify -fno-offload-fp32-prec-div the result is not required to be correctly rounded.
IDE Equivalent
Alternate Options
None
Example
The following shows an example of using this option on Linux:
icpx -fsycl -foffload-fp32-prec-div test.cpp