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

ID 683846
Date 10/04/2021

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.