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

ID 683846
Date 6/21/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.19. Configuring Constant Memory Cache Size (-const-cache-bytes=<N>)

Include the -const-cache-bytes=<N> flag in your aoc command to direct the Intel® FPGA SDK for OpenCL™ Offline Compiler to configure the constant memory cache size (rounded up to the closest power of 2).

The default constant cache size is 16 kB.

To configure the constant memory cache size, invoke the aoc -const-cache-bytes=<N> <your_kernel_filename>.cl command, where <N> is the cache size in bytes.
For example, to configure a 32 kB cache during compilation of the OpenCL™ kernel myKernel.cl, invoke the aoc -const-cache-bytes=32768 myKernel.cl command.
Note: This argument has no effect if none of the kernels uses the __constant address space.