Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* --- MAIN LOOP --- repeat test cases NTIMES times --- */
- scalar = 3.0;
- #pragma omp parallel for
- for (k=0; k<NTIMES; k++)
- {
- times[k] = omp_get_wtime();
- #pragma omp parallel
- for (j=0; j<N; j++)
- a[j] = b[j]+scalar*c[j];
- times[k] = omp_get_wtime() - times[k];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement