// // This file is part of the Bones source-to-source compiler examples. This C-code // example is meant to illustrate the use of Bones. For more information on Bones // use the contact information below. // // == More information on Bones // Contact............Cedric Nugteren // Web address........http://parse.ele.tue.nl/bones/ // // == File information // Filename...........fusion/example02.c // Author.............Cedric Nugteren // Last modified on...11-October-2014 // #include #define N 2048 #define M 512 // Condition: M must be smaller than N // This is 'example02', an example of scalar kernel fusion with mismatching bounds but independent loop bodies. int main(void) { int i,j; // Declare input/output arrays int A[N][M]; int B[N][M]; int C[N][M]; // Set the input data for(i=0;i B[0:N-1,10:M-1]|element for(i=0;i C[0:M-1,0:M-1]|element for(i=0;i