#include #include #include #include #define N 10000000 /* number of vector elements */ int main (int argc, char *argv[]) { int tid, nthreads, i; double scalar = 4.0; double *a, *b, *c; double t0, t1, dt; //Serial Initialization t0 = omp_get_wtime(); //allocation of C arrays a=(double*) malloc(N*sizeof(double)); b=(double*) malloc(N*sizeof(double)); c=(double*) malloc(N*sizeof(double)); //serial initialization: //OS will allocate all data close to initial thread for (i=0;i