examples/element/example11.c in bones-compiler-1.3.1 vs examples/element/example11.c in bones-compiler-1.6.0

- old
+ new

@@ -8,11 +8,11 @@ // Web address........http://parse.ele.tue.nl/bones/ // // == File information // Filename...........element/example11.c // Author.............Cedric Nugteren -// Last modified on...16-April-2012 +// Last modified on...10-October-2014 // #include <stdio.h> // This is 'example11', demonstrating an inner-loop which is dependent on an outer-loop variable and a classification of the inner-loop only @@ -30,16 +30,18 @@ B[i][j] = 999; } } // Perform the computation + #pragma scop for(i=0;i<128;i++) { - #pragma species kernel i:i,i:127|element -> i:i,i:127|element + #pragma species kernel A[i:i,i:127]|element -> B[i:i,i:127]|element for(j=i;j<128;j++) { B[i][j] = 2*A[i][j]; } #pragma species endkernel example11 } + #pragma endscop // Clean-up and exit the function fflush(stdout); return 0; }