Ignore:
Timestamp:
Dec 17, 2011, 3:23:46 PM (8 years ago)
Author:
vla24
Message:

Added some macro for easy PAPI performance testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/SymbolTable/symtab_hash_template.cpp

    r1786 r1791  
    1111        #define NUM_EVENTS 1
    1212//      int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    13 //      int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     13
     14#ifdef L1_PERF
     15        int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     16#elif L2_PERF
    1417        int Events[NUM_EVENTS] = {PAPI_L1_DCM};
    15 //      int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     18#else
     19        int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     20#endif
    1621        //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    1722        int cal_size = 20;
Note: See TracChangeset for help on using the changeset viewer.