/***************************************************************************** C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example 1.5 : single-core-prg-neighbour-data-dependency.c Objective : Write a program to demonstrate the execution time for the following fragment of code with/without removing neighbour data dependency. jwrap = array_size-1; for(i=0; i #include main() { int array_size,CounterI,jwrap; float VectorAorig[10000],VectorBorig[10000]; float VectorAmod[10000],VectorBmod[10000]; struct timeval TimeValue_Start; struct timezone TimeZone_Start; struct timeval TimeValue_Final; struct timezone TimeZone_Final; double time_start, time_end, time_overheadorig,time_overheadmod; printf("Enter the size of the vectors\n"); scanf("%d",&array_size); if(array_size<1) { printf("The size of the Vectors should be greater than zero\n"); exit(-1); } /* Populating the vectors A and B, variables with orig suffix are used in original construct and that with mod are used in modified construct */ for(CounterI=0;CounterI