#include #include #include #include #define N 24000 int main(int argc, char *argv[]) { double sum=0.0, t1, t2, f(), mysecond(); int i, n=N, nt=1; if (argc>1) nt = atoi(argv[1]); if (nt<0) { printf("Use: %s [num_threads]\n",argv[0]); exit(-1); } t1=mysecond(); # pragma omp parallel for num_threads(nt) reduction(+:sum) schedule(runtime) for(i=0; i