// // 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...........shared/example01.c // Author.............Cedric Nugteren // Last modified on...10-October-2014 // #include #include #define SIZE 512*1024 // This is 'example01', a basic associative and commutative reduction to scalar int main(void) { int i; // Declare input/output arrays int *A = (int *)malloc(SIZE*sizeof(int)); int B[1]; // Set the input data for(i=0;i B[0:0]|shared for(i=0;i