Changeset 2144 for proto/parabix2/src


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.