Changeset 2491 for proto/gml2svg


Ignore:
Timestamp:
Oct 19, 2012, 12:30:11 PM (7 years ago)
Author:
ksherdy
Message:

Updated script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/C/xerces/perf.sh

    r2489 r2491  
    1111# add an argument switch as a script parameter
    1212
    13 #APP="gml2svg_3_1_1"
    14 #APP_TARGET="xerces_3_1_1"
    15 #LD_LIBRARY_PATH="/home/ken/SW/xerces-c-3.1.1/src/.libs/"
    16 #SVG_DIR="svg_3_1_1"
    17 #CC_DIR="cc_3_1_1"
    18 #CC_RSLT="cc_3_1_1.txt"
     13APP="gml2svg_3_1_1"
     14APP_TARGET="xerces_3_1_1"
     15LIB_PATH="/home/ken/SW/xerces-c-3.1.1/src/.libs"
     16SVG_DIR="svg_3_1_1"
     17CC_DIR="cc_3_1_1"
     18CC_RSLT="cc_3_1_1.txt"
    1919
    2020#APP_TARGET="xerces_icx"
    2121#APP="gml2svg_icx"
    22 #LD_LIBRARY_PATH="/home/ken/SW/icxml/xerces/src/.libs/"
     22#LIB_PATH="/home/ken/SW/icxml/xerces/src/.libs/"
    2323#SVGDIR="svg_icx"
    2424#CC_DIR="cc_icx"
    2525#CC_RSLT="cc_icx.txt"
    2626
    27 APP_TARGET="xerces_icx_pipeline"
    28 APP="gml2svg_icx_pipeline"
    29 LD_LIBRARY_PATH="/home/ken/SW/picxml/src-pipeline/xerces/src/.libs/"
    30 SVGDIR="svg_icx_pipeline"
    31 CC_DIR="cc_icx_pipeline"
    32 CC_RSLT="cc_icx_pipeline.txt"
     27#APP_TARGET="xerces_icx_pipeline"
     28#APP="gml2svg_icx_pipeline"
     29#LIB_PATH="/home/ken/SW/picxml/src-pipeline/xerces/src/.libs/"
     30#SVGDIR="svg_icx_pipeline"
     31#CC_DIR="cc_icx_pipeline"
     32#CC_RSLT="cc_icx_pipeline.txt"
    3333
    3434PAPI_EVENTS=`grep -v -e '^#\|^$' papi_events.txt`
     
    3636CC_ANALYZER="../parabix/cc_analyzer"
    3737
    38 if [ ! -f $CC_ANALYZER ]; then
     38# sanity checks
     39
     40if ( ! [ -f $CC_ANALYZER ] ) ; then
    3941                echo "Error: cc_analyzer not found."   
     42                exit
     43fi
     44
     45if ( ! [ -x $CC_ANALYZER ] ) ; then
     46                echo "Error: cc_analyzer not executable."       
     47                exit
     48fi
     49
     50if (! [ -d $LIB_PATH ] ) ; then
     51                echo "Error: $LIB_PATH not found."
    4052                exit
    4153fi
     
    4961        #execute
    5062        make $APP_TARGET
    51         echo $LD_LIBRARY_PATH # abort if dir dne
    52         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
     63        export LD_LIBRARY_PATH=$LIB_PATH":$LD_LIBRARY_PATH"
    5364        ./$APP $GML_DIR $SVG_DIR
    5465done
     
    5667#analyze
    5768rm -Rf $CC_RSLT
     69touch $CC_RSLT
    5870rm -Rf $CC_DIR
    5971mv -f ".cc" $CC_DIR # update dir name to stop a clobbering
     
    6274for cc_file in $CC_FILES;       
    6375do
    64         $CC_ANALYZER $CC_DIR/$cc_file -r -c -p >> $CC_RSLT
     76                $CC_ANALYZER $CC_DIR/$cc_file -r -c -p >> $CC_RSLT
    6577done
    6678
    67 echo
     79echo -n "Result file: "
     80echo $CC_RSLT
     81
    6882echo "Perf test complete."
    6983
Note: See TracChangeset for help on using the changeset viewer.