Intel® FPGA SDK for OpenCL™ Standard Edition: Programming Guide

ID 683342
Date 4/22/2019
Public
Document Table of Contents

7.16. Reducing Floating-Point Rounding Operations (-fpc)

Include the -fpc option in your aoc command to direct the Intel® FPGA SDK for OpenCL™ Offline 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).

To direct the offline compiler to reduce the number of rounding operations, invoke the aoc -fpc <your_kernel_filename>.cl command.