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

ID 683846
Date 12/19/2022
Document Table of Contents
Give Feedback

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.