Intel® FPGA SDK for OpenCL™ Pro Edition: Best Practices Guide
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: mwh1391807498757
Ixiasoft
Visible to Intel only — GUID: mwh1391807498757
Ixiasoft
4.7. Avoiding Pointer Aliasing
The restrict keyword informs the offline compiler that the pointer does not alias other pointers. For example, if your kernel has two pointers to global memory, A and B, that never overlap each other, declare the kernel in the following manner:
__kernel void myKernel (__global int * restrict A,
__global int * restrict B)