Changeset 119e6c8 for doc


Ignore:
Timestamp:
Mar 18, 2023, 2:20:40 PM (14 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
0faacb8
Parents:
5ff9b23
Message:

updated mutex stmt run script and header for cpp variant

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  
    1717        }
    1818};
     19
     20inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b ) {
     21    a.lock(); b.lock();
     22}
     23inline 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}
     26inline 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}
     29inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b ) {
     30    a.unlock(); b.unlock();
     31}
     32inline 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}
     35inline 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  
    9292locks=('2' '4' '8')
    9393
    94 num_threads='2 4 8 16 24 32'
     94# num_threads='2 4 8 16 24 32'
     95num_threads='2 4 8'
    9596
    9697# toggle benchmarks
    97 rand=${false} # prolly not needed
    9898order=${true}
    9999
     
    178178    if [ ${runCFA} -eq ${true} ] ; then
    179179        cd cfa # CFA RUN
    180         print_header 'CFA'
    181         ${cfa} ${cfa_flags} ${2} order.cfa -o a.${hostname} > /dev/null 2>&1
     180        print_header 'CFA'${3}
     181        ${cfa} ${cfa_flags} ${2} order${3}.cfa -o a.${hostname} > /dev/null 2>&1
    182182        run_bench
    183183        rm a.${hostname}
     
    187187    if [ ${runCPP} -eq ${true} ] ; then
    188188        cd cpp # CPP RUN
    189         print_header 'CPP'
    190         ${cpp} ${cpp_flags} ${2} order.cc -o a.${hostname} > /dev/null 2>&1
     189        print_header 'CPP'${3}
     190        ${cpp} ${cpp_flags} ${2} order${3}.cc -o a.${hostname} > /dev/null 2>&1
    191191        run_bench
    192192        rm a.${hostname}
     
    198198if [ ${order} -eq ${true} ] ; then
    199199    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'
    201202    done
    202203fi
Note: See TracChangeset for help on using the changeset viewer.