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

5.9. Including Structure Data Types as Arguments in OpenCL Kernels

Pass structure parameters (struct) in OpenCL kernels either by value or as a pointer to a structure.
Attention: The __global struct argument points to a buffer that must be created in the host program to store the structure. To prevent pointer aliasing, include a restrict qualifier in the declaration of the pointer to the structure.