Changeset 5697 in /cluster/svnroot


Ignore:
Timestamp:
May 23, 2016 7:53:23 PM (5 years ago)
Author:
skylar
Message:

add openmp timing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/bw-institute/2016/day06/matmul/matmul.c

    r5696 r5697  
    102102    // and loop for array calculation have thread-local variables
    103103#ifdef _OPENMP
    104 #pragma omp parallel for private(dst_coord,i) collapse(2)
     104    double start_t = omp_get_wtime();
     105#pragma omp parallel for private(dst_coord,i) collapse(2) schedule(static,1)
    105106#endif
    106107    for(dst_row=0;dst_row<dst_m->rows;dst_row++) {
     
    125126        }
    126127    }
     128#ifdef _OPENMP
     129    fprintf(stderr,"OpenMP took %f seconds\n",omp_get_wtime()-start_t);
     130#endif
    127131}
Note: See TracChangeset for help on using the changeset viewer.