examples/dependences/example04.c in bones-compiler-1.3.1 vs examples/dependences/example04.c in bones-compiler-1.6.0
- old
+ new
@@ -8,11 +8,11 @@
// Web address........http://parse.ele.tue.nl/bones/
//
// == File information
// Filename...........dependences/example04.c
// Author.............Cedric Nugteren
-// Last modified on...07-May-2013
+// Last modified on...11-October-2014
//
#include <stdio.h>
// This is 'example04', a 2D example WITHOUT dependences.
@@ -29,14 +29,16 @@
D[i][j] = i*j+3;
}
}
// Perform the computation
+ #pragma scop
#pragma species kernel D[1:8*N-7,1:8*N-7]|element -> D[6:2*N+4,6:2*N+4]|element
for (i=0; i<N; i++) { // No dependence
D[2*i+6][2*i+6] = D[8*i+1][8*i+1];
}
#pragma species endkernel example04
+ #pragma endscop
// Clean-up and exit the function
fflush(stdout);
return 0;
}