Prevents a loop from fusing with adjacent loops.
#pragma nofusion |
None
The nofusion pragma lets you fine tune your program on a loop-by-loop basis. This pragma should be placed immediately before the loop that should not be fused.
The nofusion pragma is supported in host code only.
#define SIZE 1024
int sub () {
int B[SIZE], A[SIZE];
int i, j, k=0;
for(j=0; j<SIZE; j++)
A[j] = A[j] + B[j];
#pragma nofusion
for (i=0; i<SIZE; i++)
k += A[i] + 1;
return k;
}