Changeset 5701 in /cluster/svnroot


Ignore:
Timestamp:
May 23, 2016 8:18:17 PM (5 years ago)
Author:
skylar
Message:

only need gettimeofday for serial

Location:
bccd-ng/bw-institute/2016/day06/matmul
Files:
2 edited

Legend:

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

    r5700 r5701  
    9696}
    9797
     98#ifndef _OPENMP
    9899struct timeval safe_gettimeofday() {
    99100    struct timeval now_t;
     
    106107    return now_t;
    107108}
     109#endif
    108110
    109111void matmul(struct matrix *m1,struct matrix *m2,struct matrix *dst_m) {
  • bccd-ng/bw-institute/2016/day06/matmul/matmul.h

    r5700 r5701  
    5151void print_matrix(const struct matrix *);
    5252
    53 // Returns a timeval struct for the current time
     53#ifndef _OPENMP
     54// Returns a timeval struct for the current time, only needed for serial
    5455struct timeval safe_gettimeofday();
     56#endif
    5557
    5658// Takes in two sources matrices and a destination matrix
Note: See TracChangeset for help on using the changeset viewer.