Ignore:
Timestamp:
Aug 31, 2023, 11:31:15 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master, stuck-waitfor-destruct
Children:
950c58e
Parents:
92355883 (diff), 686912c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Resolve conflict

File:
1 edited

Legend:

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

    r92355883 r2a301ff  
    8585}
    8686
    87 # numtimes=5
    88 numtimes=1
     87numtimes=5
     88# numtimes=1
    8989
    9090# num_threads='2 4 8 16 24 32'
    91 # side_chan_threads='6 12 18 24 30' # must be mults of 6
     91side_chan_threads='6 12 18 24 30' # must be mults of 6
    9292num_threads='2'
    93 side_chan_threads='6'
     93# side_chan_threads='6'
    9494
    9595chan_size='10'
    9696future_time='10'
     97future_flags=('-DOR' '-DAND3' '-DANDOR' '-DORAND')
     98future_names=('OR' 'AND' 'ANDOR' 'ORAND')
    9799
    98100# toggle benchmarks
     
    101103sidechan=${true}
    102104future=${true}
     105order=${true}
    103106spin=${false}
    104107contend=${false}
    105108sidechan=${false}
    106 # future=${false}
     109future=${false}
     110# order=${false}
    107111
    108112runCFA=${true}
    109113runGO=${true}
    110 runUCPP=${true}
     114# runUCPP=${true}
    111115# runCFA=${false}
    112 runGO=${false}
    113 # runUCPP=${false}
     116# runGO=${false}
     117runUCPP=${false}
    114118
    115119cfa=~/cfa-cc/driver/cfa
     
    163167}
    164168
     169run_order() {
     170    affinity 4
     171    preprint="4\t"
     172    repeat_command taskset -c ${taskset} ./a.${hostname}
     173}
     174
    165175run_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
     176    affinity 2
     177    preprint="2\t"
     178    repeat_command taskset -c ${taskset} ./a.${hostname} ${post_args}
    172179}
    173180
     
    262269
    263270if [ ${future} -eq ${true} ] ; then
    264     echo "future: "
    265271    post_args=${future_time}
     272    for i in ${!future_flags[@]}; do
     273        echo 'future '${future_names[$i]}':'
     274        if [ ${runCFA} -eq ${true} ] ; then
     275            cd cfa # CFA RUN
     276            print_header 'CFA'
     277            ${cfa} ${cfa_flags} ${future_flags[$i]} future.cfa -o a.${hostname} > /dev/null 2>&1
     278            run_future
     279            rm a.${hostname}
     280            cd - > /dev/null
     281        fi # done CFA
     282
     283        if [ ${runUCPP} -eq ${true} ] ; then
     284            cd ucpp
     285            print_header 'uC++'
     286            ${UCPP} ${UCPPflags} ${future_flags[$i]} future.cc -o a.${hostname} > /dev/null 2>&1
     287            run_future
     288            rm a.${hostname}
     289            cd - > /dev/null
     290        fi # done Go
     291    done
     292fi
     293
     294if [ ${order} -eq ${true} ] ; then
     295    echo "order: "
     296    post_args=${chan_size}
    266297    if [ ${runCFA} -eq ${true} ] ; then
    267298        cd cfa # CFA RUN
    268299        print_header 'CFA'
    269         ${cfa} ${cfa_flags} future.cfa -o a.${hostname} > /dev/null 2>&1
    270         run_future
     300        ${cfa} ${cfa_flags} order.cfa -o a.${hostname} > /dev/null 2>&1
     301        run_order
    271302        rm a.${hostname}
    272303        cd - > /dev/null
    273304    fi # done CFA
    274305
    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
     306    if [ ${runGO} -eq ${true} ] ; then
     307        cd go/order
     308        print_header 'Go'
     309        go build -o a.${hostname} > /dev/null 2>&1
     310        run_order
    280311        rm a.${hostname}
    281312        cd - > /dev/null
    282313    fi # done Go
    283314fi
    284 
Note: See TracChangeset for help on using the changeset viewer.