Ignore:
Timestamp:
May 29, 2023, 10:41:11 AM (12 months ago)
Author:
caparsons <caparson@…>
Branches:
ast-experimental, master
Children:
efe89894
Parents:
4d5c855
Message:

intermediate runscript to move to benchmarking on another machine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/waituntil/run

    r4d5c855 rf77f648d  
    9494
    9595chan_size='10'
     96future_time='10'
    9697
    9798# toggle benchmarks
     
    99100contend=${true}
    100101sidechan=${true}
    101 # spin=${false}
    102 # contend=${false}
    103 # sidechan=${false}
     102future=${true}
     103spin=${false}
     104contend=${false}
     105sidechan=${false}
     106# future=${false}
    104107
    105108runCFA=${true}
    106109runGO=${true}
     110runUCPP=${true}
    107111# runCFA=${false}
    108 # runGO=${false}
     112runGO=${false}
     113# runUCPP=${false}
    109114
    110115cfa=~/cfa-cc/driver/cfa
     
    158163}
    159164
     165run_future() {
     166    for p in ${num_threads} ; do
     167        pre_args=$(( ${p} - 1 ))
     168        affinity ${p}
     169        preprint="${p}\t"
     170        repeat_command taskset -c ${taskset} ./a.${hostname} ${pre_args} ${post_args}
     171    done
     172}
     173
    160174arch # get hostname
    161175
     
    177191# cfa flags
    178192cfa_flags='-quiet -O3 -nodebug -DNDEBUG'
     193
     194# UCPP flags
     195UCPPflags="-quiet -g -Wall -Wextra -O3 -nodebug -DNDEBUG -multi"
     196UCPP=~/ucpp/u++-7.0.0/bin/u++
    179197
    180198# run the benchmarks
     
    243261fi
    244262
     263if [ ${future} -eq ${true} ] ; then
     264    echo "future: "
     265    post_args=${future_time}
     266    if [ ${runCFA} -eq ${true} ] ; then
     267        cd cfa # CFA RUN
     268        print_header 'CFA'
     269        ${cfa} ${cfa_flags} future.cfa -o a.${hostname} > /dev/null 2>&1
     270        run_future
     271        rm a.${hostname}
     272        cd - > /dev/null
     273    fi # done CFA
     274
     275    if [ ${runUCPP} -eq ${true} ] ; then
     276        cd ucpp
     277        print_header 'uC++'
     278        ${UCPP} ${UCPPflags} future.cc -o a.${hostname} > /dev/null 2>&1
     279        run_future
     280        rm a.${hostname}
     281        cd - > /dev/null
     282    fi # done Go
     283fi
     284
Note: See TracChangeset for help on using the changeset viewer.