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_div_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};
    14                 int Events[NUM_EVENTS] = {PAPI_L1_DCM};
    15 //              int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     13#ifdef L1_PERF
     14        int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     15#elif L2_PERF
     16        int Events[NUM_EVENTS] = {PAPI_L1_DCM};
     17#else
     18        int Events[NUM_EVENTS] = {PAPI_BR_MSP};
     19#endif
    1620        int cal_size = 20;
    1721        CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
Note: See TracChangeset for help on using the changeset viewer.