Changeset 2144 for proto/parabix2


Ignore:
Timestamp:
May 24, 2012, 11:21:49 AM (7 years ago)
Author:
ksherdy
Message:

Added target for PAPI support. Enable PERF_SEC_BIND(1) as default.

Location:
proto/parabix2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template.cpp

    r1943 r2144  
    3232
    3333#elif CODE_CLOCKER
    34         #define NUM_EVENTS 1
    35         int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
     34        //#define NUM_EVENTS 1
     35        //int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    3636        //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
    37         //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
     37        #define NUM_EVENTS 2
     38        int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    3839        int cal_size = 20;
    3940        CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
     
    100101        }
    101102
    102 //      PERF_SEC_BIND(1);
     103        PERF_SEC_BIND(1);
    103104
    104105        PERF_SEC_INIT(parser_timer);
  • proto/parabix2/src/Makefile

    r1603 r2144  
    1313ifeq ($(ARCH),32)
    1414    AFLAGS=-march=pentium4
    15     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     15    PAPI=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    1616else
    1717    AFLAGS=-march=nocona -m64
    18     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     18    PAPI=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    1919endif
    2020
     
    2727threads:        $(SRCFILE)
    2828        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
     29
     30papi_profiling: $(SRCFILE)
     31        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(PAPI)
    2932
    3033buffer_profiling: $(SRCFILE)
Note: See TracChangeset for help on using the changeset viewer.