#include #include #include #include #include #include #define n 1000000000 int main() { double * x; double openmp_sum; double real_sum; int nthreads; int i; int j; int k; x = malloc( n * sizeof(double) ); char buff[100]; time_t now = time (NULL); printf(" Program starts\n"); strftime (buff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&now)); printf (" %s\n", buff); time_t t1 = time( NULL ); time_t t2 = time( NULL ); nthreads = omp_get_max_threads(); printf(" Maximum number of threads = %3d \n",nthreads); k = 1; real_sum=n*1.0; for(i=0;i