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_pbgs_identity_template.cpp

    r1786 r1791  
    1212        #define NUM_EVENTS 1
    1313//      int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    14 //      int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     14#ifdef L1_PERF
     15        int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     16#elif L2_PERF
    1517        int Events[NUM_EVENTS] = {PAPI_L1_DCM};
    16 //      int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     18#else
     19        int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     20#endif
    1721        int cal_size = 20;
    1822        CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
Note: See TracChangeset for help on using the changeset viewer.