#include #include #include #include #define N 1024 #define P 2 double A[N*N],B[N*N]; int main(int argc,char *argv[]) { struct timeval s,e; int i,j,k,m; double sum=0.0; omp_set_num_threads(P); gettimeofday(&s,NULL); for(m=0;m<10;m++){ #pragma omp parallel for private(j) /*A*/ for(i=0;i