examples/chunk/example06.c in bones-compiler-1.3.1 vs examples/chunk/example06.c in bones-compiler-1.6.0
- old
+ new
@@ -8,11 +8,11 @@
// Web address........http://parse.ele.tue.nl/bones/
//
// == File information
// Filename...........chunk/example06.c
// Author.............Cedric Nugteren
-// Last modified on...07-May-2013
+// Last modified on...10-October-2014
//
#include <stdio.h>
// This is 'example06', a chunk/chunk with a step of 2
@@ -29,15 +29,17 @@
A[i] = i;
B[i] = i+5;
}
// Perform the computation
+ #pragma scop
#pragma species kernel A[2:N-1]|chunk(0:1) -> B[2:N-1]|chunk(0:1)
for (i=2; i<N-1; i=i+2) {
B[i] = A[i];
B[i+1] = A[i+1];
}
#pragma species endkernel example06
+ #pragma endscop
// Clean-up and exit the function
fflush(stdout);
return 0;
}