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

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

7.15. Relaxing the Order of Floating-Point Operations (-fp-relaxed)

Include the -fp-relaxed option in your aoc command to direct the Intel® FPGA SDK for OpenCL™ Offline Compiler to relax the order of arithmetic floating-point operations using a balanced tree hardware implementation.

Implementing 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.
To direct the offline compiler to execute a balanced tree hardware implementation, invoke the aoc -fp-relaxed <your_kernel_filename>.cl command.