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

ID 683846
Date 3/28/2022
Public

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

Document Table of Contents

11.2.1. Restrictions on the Use of Variable-specific Attributes

The Intel® FPGA SDK for OpenCL™ Offline Compiler errors out or issues warnings if it detects unsupported usages of the variable-specific attributes or incorrect memory configurations.

Unsupported uses of variable-specific attributes that cause compilation errors:

  • You use the kernel attributes in declarations other than constant, local, or private variable declarations (for example, declarations for function parameters, global variable declarations, or function declarations).
  • You use the register attribute in conjunction with any of the other variable-specific attributes.
  • You include both the singlepump and doublepump attributes in the same variable declaration.

Incorrect memory configurations that cause the offline compiler to issue warnings during compilation:

  • The memory configuration that is defined by the variable-specific attributes exceeds the available storage size (for example, specifying eight banks of local memory for an integer variable).

Incorrect memory configurations that cause compilation errors:

  • The bank width is smaller than the data access size (for example, bank width is 2 bytes for an array of 4-byte integers).