Changeset 2826 for proto


Ignore:
Timestamp:
Jan 21, 2013, 7:01:36 PM (7 years ago)
Author:
ksherdy
Message:

Update perf scripts.

Location:
proto/gml2svg/C/xerces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/C/xerces/Makefile

    r2823 r2826  
    2626XERCES_3_1_1_L=$(XERCES_3_1_1_BASE)/.libs
    2727XERCES_3_1_1_l=xerces-c-3.1
    28 XERCES_3_1_1_I=$(XERCES_3_1_1_BASE)
     28XERCES_3_1_1_I=$(XERCES_3_1_1_BASE)/
    2929     
    3030XERCES_ICX_BASE=/home/ken/SW/icxml/xerces/src
     
    4444
    4545xerces_3_1_1: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
    46         $(CC) -o gml2svg_3_1_1 gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_3_1_1_I) -L$(XERCES_3_1_1_L) -l$(XERCES_3_1_1_l) $(FLAGS) -Ilib/perflib #$(PAPI) #-DSYSTEM_TIME
     46        $(CC) -o gml2svg_3_1_1 gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_3_1_1_I) -L$(XERCES_3_1_1_L) -l$(XERCES_3_1_1_l) $(FLAGS) -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
    4747        echo export LD_LIBRARY_PATH=$(XERCES_3_1_1_L)
    4848
  • proto/gml2svg/C/xerces/gml2svg.cpp

    r2545 r2826  
    4444        char * gml_src_dir_path = NULL;
    4545        char * svg_dest_dir_path = NULL;
     46
     47        int PAPI_EVENT = 0;
    4648
    4749        if (argc > 2)
     
    8183                        }
    8284                }
     85
     86                if(argc == 3) {
     87                        //PAPI_EVENT = argv[2];
     88                        //cout << hex << PAPI_EVENT << endl;
     89                        //exit(1);
     90                }
     91
    8392        }
    8493        else
    8594        {
    86                 fprintf(stderr, "gml2svg <GML SRC DIR> <SVG DEST DIR>\n"); exit(-1);
     95                fprintf(stderr, "gml2svg <GML SRC DIR> <SVG DEST DIR> [PAPI_EVENT]\n"); exit(-1);
    8796        }
    8897
  • proto/gml2svg/C/xerces/perf.sh

    r2823 r2826  
    11#!/bin/bash
    22#
    3 # File:    gml2svg.cpp
     3# File:         perf.sh
    44#
    5 # Author:  Ken Herdy
    6 #          ksherdy@sfu.ca
     5# Author:       Ken Herdy
     6#               ksherdy@sfu.ca
    77#
    8 
     8# Desc:         Execute make_papi_events.sh to create 'papi_events.dat'.
     9#
     10#
     11#
    912GML_DIR="../../data/layer/gml-10"
    10 
     13PAPI_EVENTS_DAT="papi_events.dat"
    1114NO_ARGS=0
    1215E_OPTERROR=85
    1316USAGE="Usage: `basename $0` [-x Xerces 3.1.1  | -i ICXML | -p Pipeline ICXML]"
    1417
    15 if [ $# -eq "$NO_ARGS" ]    # Script invoked with no command-line args?
     18if [ $# -eq "$NO_ARGS" ]    # Script invoked with no command-line args
    1619then
    1720  echo $USAGE
     
    6669fi
    6770
    68 PAPI_EVENTS=`grep -v -e '^#\|^$' papi_events.txt`
     71PAPI_EVENTS=`grep -v -e '^#\|^$' $PAPI_EVENTS_DAT` # an event code per line
    6972
    7073CC_ANALYZER="../parabix/cc_analyzer"
Note: See TracChangeset for help on using the changeset viewer.