examples/element/example12.c in bones-compiler-1.3.1 vs examples/element/example12.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/example12.c
// Author.............Cedric Nugteren
-// Last modified on...06-Aug-2012
+// Last modified on...10-October-2014
//
#include <stdio.h>
#include <stdlib.h>
@@ -46,11 +46,13 @@
// Function implementing the computation for 'example12'
void computation(int* A, int* B, int constant) {
int i;
// Perform the computation
- #pragma species kernel 0:127|element -> 0:127|element
+ #pragma scop
+ #pragma species kernel A[0:127]|element -> B[0:127]|element
for(i=0;i<128;i++) {
B[i] = 2*A[i] + constant;
}
#pragma species endkernel example12
+ #pragma endscop
}