- Timestamp:
- Mar 19, 2023, 1:51:35 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- cd477ca
- Parents:
- 0da7181
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/run
r0da7181 r5f648fb3 85 85 } 86 86 87 numtimes=1 87 numtimes=11 88 88 89 89 # locks=('-DLOCKS=L1' '-DLOCKS=L2' '-DLOCKS=L3' '-DLOCKS=L4' '-DLOCKS=L5' '-DLOCKS=L6' '-DLOCKS=L7' '-DLOCKS=L8') … … 92 92 locks=('2' '4' '8') 93 93 94 #num_threads='2 4 8 16 24 32'95 num_threads='2 4 8'94 num_threads='2 4 8 16 24 32' 95 # num_threads='2 4 8' 96 96 97 97 # toggle benchmarks 98 98 order=${true} 99 rand=${true} 100 baseline=${true} 99 101 100 102 runCFA=${true} … … 156 158 157 159 if [ ${runCFA} -eq ${true} ] ; then 158 echo -n 'CFA ' 160 if [ ${order} -eq ${true} ] ; then 161 echo -n 'CFA-order ' 162 fi 163 if [ ${baseline} -eq ${true} ] ; then 164 echo -n 'CFA-baseline ' 165 fi 166 if [ ${rand} -eq ${true} ] ; then 167 echo -n 'CFA-rand ' 168 fi 159 169 fi # done CFA 160 170 if [ ${runCPP} -eq ${true} ] ; then 161 echo -n 'CPP ' 171 if [ ${order} -eq ${true} ] ; then 172 echo -n 'CPP-order ' 173 fi 174 if [ ${baseline} -eq ${true} ] ; then 175 echo -n 'CPP-baseline ' 176 fi 177 if [ ${rand} -eq ${true} ] ; then 178 echo -n 'CPP-rand ' 179 fi 162 180 fi # done CPP 163 181 echo "" … … 174 192 175 193 run_order() { 176 echo "order locks: "${1} 194 echo "locks: "${1} 195 post_args=${1} 177 196 178 197 if [ ${runCFA} -eq ${true} ] ; then 179 198 cd cfa # CFA RUN 180 print_header 'CFA '${3}181 ${cfa} ${cfa_flags} ${2} order${3}.cfa -o a.${hostname} > /dev/null 2>&1199 print_header 'CFA-'${3} 200 ${cfa} ${cfa_flags} ${2} ${3}.cfa -o a.${hostname} > /dev/null 2>&1 182 201 run_bench 183 202 rm a.${hostname} … … 187 206 if [ ${runCPP} -eq ${true} ] ; then 188 207 cd cpp # CPP RUN 189 print_header 'CPP '${3}190 ${cpp} ${cpp_flags} ${2} order${3}.cc -o a.${hostname} > /dev/null 2>&1208 print_header 'CPP-'${3} 209 ${cpp} ${cpp_flags} ${2} ${3}.cc -o a.${hostname} > /dev/null 2>&1 191 210 run_bench 192 211 rm a.${hostname} … … 196 215 197 216 # /usr/bin/time -f "%Uu %Ss %Er %Mkb" 198 if [ ${order} -eq ${true} ] ; then 199 for i in ${!locks[@]}; do 200 run_order ${locks[$i]} ${lock_flags[$i]} '' 201 run_order ${locks[$i]} ${lock_flags[$i]} '-basic' 202 done 203 fi 204 217 218 for i in ${!locks[@]}; do 219 if [ ${order} -eq ${true} ] ; then 220 run_order ${locks[$i]} ${lock_flags[$i]} 'order' 221 fi 222 if [ ${baseline} -eq ${true} ] ; then 223 run_order ${locks[$i]} ${lock_flags[$i]} 'baseline' 224 fi 225 if [ ${rand} -eq ${true} ] ; then 226 run_order ${locks[$i]} '-DLOCKS=L8' 'rand' 227 fi 228 done 229 230
Note: See TracChangeset
for help on using the changeset viewer.