- Timestamp:
- Aug 31, 2023, 11:31:15 PM (3 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/waituntil/run
r92355883 r2a301ff 85 85 } 86 86 87 #numtimes=588 numtimes=187 numtimes=5 88 # numtimes=1 89 89 90 90 # num_threads='2 4 8 16 24 32' 91 #side_chan_threads='6 12 18 24 30' # must be mults of 691 side_chan_threads='6 12 18 24 30' # must be mults of 6 92 92 num_threads='2' 93 side_chan_threads='6'93 # side_chan_threads='6' 94 94 95 95 chan_size='10' 96 96 future_time='10' 97 future_flags=('-DOR' '-DAND3' '-DANDOR' '-DORAND') 98 future_names=('OR' 'AND' 'ANDOR' 'ORAND') 97 99 98 100 # toggle benchmarks … … 101 103 sidechan=${true} 102 104 future=${true} 105 order=${true} 103 106 spin=${false} 104 107 contend=${false} 105 108 sidechan=${false} 106 # future=${false} 109 future=${false} 110 # order=${false} 107 111 108 112 runCFA=${true} 109 113 runGO=${true} 110 runUCPP=${true}114 # runUCPP=${true} 111 115 # runCFA=${false} 112 runGO=${false}113 #runUCPP=${false}116 # runGO=${false} 117 runUCPP=${false} 114 118 115 119 cfa=~/cfa-cc/driver/cfa … … 163 167 } 164 168 169 run_order() { 170 affinity 4 171 preprint="4\t" 172 repeat_command taskset -c ${taskset} ./a.${hostname} 173 } 174 165 175 run_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} 172 179 } 173 180 … … 262 269 263 270 if [ ${future} -eq ${true} ] ; then 264 echo "future: "265 271 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 292 fi 293 294 if [ ${order} -eq ${true} ] ; then 295 echo "order: " 296 post_args=${chan_size} 266 297 if [ ${runCFA} -eq ${true} ] ; then 267 298 cd cfa # CFA RUN 268 299 print_header 'CFA' 269 ${cfa} ${cfa_flags} future.cfa -o a.${hostname} > /dev/null 2>&1270 run_ future300 ${cfa} ${cfa_flags} order.cfa -o a.${hostname} > /dev/null 2>&1 301 run_order 271 302 rm a.${hostname} 272 303 cd - > /dev/null 273 304 fi # done CFA 274 305 275 if [ ${run UCPP} -eq ${true} ] ; then276 cd ucpp277 print_header ' uC++'278 ${UCPP} ${UCPPflags} future.cc-o a.${hostname} > /dev/null 2>&1279 run_ future306 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 280 311 rm a.${hostname} 281 312 cd - > /dev/null 282 313 fi # done Go 283 314 fi 284
Note:
See TracChangeset
for help on using the changeset viewer.