// // 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...........dependences/example04.c // Author.............Cedric Nugteren // Last modified on...11-October-2014 // #include // This is 'example04', a 2D example WITHOUT dependences. int main(void) { int i,j; int N = 256; // Declare input/output arrays int D[N][N]; // Set the input data for(i=0;i D[6:2*N+4,6:2*N+4]|element for (i = 0; i < N; i++) { D[2 * i + 6][2 * i + 6] = D[8 * i + 1][8 * i + 1]; } #pragma species endkernel example04_k1 } #pragma endscop // Clean-up and exit the function fflush(stdout); return 0; }