Changeset 499 for perf


Ignore:
Timestamp:
Jul 14, 2010, 4:50:24 PM (9 years ago)
Author:
ksherdy
Message:

Substitute preprocessor define PAPI with preprocessor define CODE_CLOCKER.

Location:
perf/stream2runs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perf/stream2runs/Makefile

    r497 r499  
    77ifeq ($(ARCH),32)
    88    AFLAGS=-march=pentium4
    9     PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     9    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    1010else
    1111    AFLAGS=-march=nocona -m64
    12     PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     12    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    1313endif
    1414
  • perf/stream2runs/src/stream2runs.cxx

    r498 r499  
    1818
    1919// Performance Measurement
    20 #ifdef PAPI
     20#ifdef CODE_CLOCKER
    2121#include "../lib/cclib/cc.h"
    2222#include "../lib/cclib/cc.cxx"
     
    436436  }
    437437
    438 #ifdef PAPI
     438#ifdef CODE_CLOCKER
    439439    SetCPUAffinity();
    440440        char * src_filename = argv[1];
     
    501501  cout << "SIMD pack bytes: " << simd_packs * sizeof(SIMD_type) << endl << endl;
    502502 
    503   #ifdef PAPI
     503  #ifdef CODE_CLOCKER
    504504        code_clocker->start_interval();
    505505  #endif       
     
    527527  #endif
    528528
    529   #ifdef PAPI
     529  #ifdef CODE_CLOCKER
    530530        code_clocker->end_interval(bytes);
    531531  #endif       
     
    557557  }
    558558 
    559   #ifdef PAPI 
     559  #ifdef CODE_CLOCKER
    560560        code_clocker->write_xml_file();
    561561        code_clocker->display_system_info();
Note: See TracChangeset for help on using the changeset viewer.