Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: awm1581448046549
Ixiasoft
Visible to Intel only — GUID: awm1581448046549
Ixiasoft
5.2.5. Marking Loops to Prevent Automatic Fusion (nofusion Pragma)
To specify a loop to not be eligible for fusion, specify the nofusion pragma as follows:
#pragma nofusion
for (int i = 0; i < N; ++i) {
...
}
In the following example, the compiler does not apply the loop fusion transformation to loops L1 and L2.
#pragma nofusion
L1: for (int j=0; j < N; ++j) {
data[j] += Q;
}
L2: for (int i = 0; i < N; ++l) {
output[i] = Q * data[i];
}