Changeset 119e6c8
- Timestamp:
- Mar 18, 2023, 2:20:40 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 0faacb8
- Parents:
- 5ff9b23
- Location:
- doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/cpp/cppLock.hpp
r5ff9b23 r119e6c8 17 17 } 18 18 }; 19 20 inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b ) { 21 a.lock(); b.lock(); 22 } 23 inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d ) { 24 a.lock(); b.lock(); c.lock(); d.lock(); 25 } 26 inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d, cpp_test_spinlock &e, cpp_test_spinlock &f, cpp_test_spinlock &g, cpp_test_spinlock &h ) { 27 a.lock(); b.lock(); c.lock(); d.lock(); e.lock(); f.lock(); g.lock(); h.lock(); 28 } 29 inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b ) { 30 a.unlock(); b.unlock(); 31 } 32 inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d ) { 33 a.unlock(); b.unlock(); c.unlock(); d.unlock(); 34 } 35 inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d, cpp_test_spinlock &e, cpp_test_spinlock &f, cpp_test_spinlock &g, cpp_test_spinlock &h ) { 36 a.unlock(); b.unlock(); c.unlock(); d.unlock(); e.unlock(); f.unlock(); g.unlock(); h.unlock(); 37 } -
doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/run
r5ff9b23 r119e6c8 92 92 locks=('2' '4' '8') 93 93 94 num_threads='2 4 8 16 24 32' 94 # num_threads='2 4 8 16 24 32' 95 num_threads='2 4 8' 95 96 96 97 # toggle benchmarks 97 rand=${false} # prolly not needed98 98 order=${true} 99 99 … … 178 178 if [ ${runCFA} -eq ${true} ] ; then 179 179 cd cfa # CFA RUN 180 print_header 'CFA' 181 ${cfa} ${cfa_flags} ${2} order .cfa -o a.${hostname} > /dev/null 2>&1180 print_header 'CFA'${3} 181 ${cfa} ${cfa_flags} ${2} order${3}.cfa -o a.${hostname} > /dev/null 2>&1 182 182 run_bench 183 183 rm a.${hostname} … … 187 187 if [ ${runCPP} -eq ${true} ] ; then 188 188 cd cpp # CPP RUN 189 print_header 'CPP' 190 ${cpp} ${cpp_flags} ${2} order .cc -o a.${hostname} > /dev/null 2>&1189 print_header 'CPP'${3} 190 ${cpp} ${cpp_flags} ${2} order${3}.cc -o a.${hostname} > /dev/null 2>&1 191 191 run_bench 192 192 rm a.${hostname} … … 198 198 if [ ${order} -eq ${true} ] ; then 199 199 for i in ${!locks[@]}; do 200 run_order ${locks[$i]} ${lock_flags[$i]} 200 run_order ${locks[$i]} ${lock_flags[$i]} '' 201 run_order ${locks[$i]} ${lock_flags[$i]} '-basic' 201 202 done 202 203 fi
Note: See TracChangeset
for help on using the changeset viewer.