Changeset 2554 for proto/u16u8


Ignore:
Timestamp:
Oct 24, 2012, 2:06:17 PM (7 years ago)
Author:
ksherdy
Message:

Removed CODE_CLOCKER reference.

Location:
proto/u16u8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/u16u8/src/Makefile

    r603 r2554  
    1212endif
    1313
    14 PAPI_DIR=/usr/local/papi-4.0.0
     14PAPI_DIR=/usr/local/papi
    1515
    1616ARCH=$(shell getconf LONG_BIT)
    1717ifeq ($(ARCH),32)
    1818    AFLAGS=-march=pentium4
    19     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     19    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
    2020else
    2121    AFLAGS=-march=nocona -m64
    22     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     22    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
    2323endif
    2424
  • proto/u16u8/template.c

    r621 r2554  
    2222
    2323#ifdef BUFFER_PROFILING
    24         BOM_Table * transcode_timer;
    25 
    26 #elif CODE_CLOCKER
    27         #define NUM_EVENTS 1
    28         int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    29         //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
    30         //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    31         int cal_size = 20;
    32         CC * transcode_timer = new CC(Events,NUM_EVENTS,cal_size);
     24    BOM_Table * transcode_timer;
     25#elif PAPI
     26                #define PAPI_EVENTS_COUNT 2
     27                int PAPI_EVENTS[PAPI_EVENTS_COUNT] = {PAPI_TOT_CYC, PAPI_BR_MSP};       
     28    CC * transcode_timer;
    3329#else
    34         void * transcode_timer;
     30    void * transcode_timer;
    3531#endif
    3632
Note: See TracChangeset for help on using the changeset viewer.