Changeset 4eebbcc


Ignore:
Timestamp:
Mar 24, 2023, 4:57:03 PM (20 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
9319a23, e10714a
Parents:
2f6a9391
Message:

some mutex stmt benchmark cleanup

Location:
doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/cfa/rand.cfa

    r2f6a9391 r4eebbcc  
    6565    uint64_t count = 0;
    6666    while (true) {
    67         locks( my_arr + (count % num_gen) * num_locks );
     67        locks( my_arr + (count % num_gen) * num_locks ); // go to start of next sequence of locks
    6868        count++;
    6969        if (done) break;
  • doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/plotData.py

    r2f6a9391 r4eebbcc  
    101101                    plt.errorbar( procs, arr, [bars[idx][0], bars[idx][1]], capsize=2, marker='o' )
    102102                plt.yscale("log")
    103                 ax.get_yaxis().set_major_formatter(ticks.ScalarFormatter())
    104103                plt.xticks(procs)
    105104                ax.legend(names)
    106                 # fig.savefig("plots/" + machineName + name + "_" + str(currLocks) + ".png")
    107                 plt.savefig("plots/" + machineName + name + "_" + str(currLocks) + ".pgf")
     105                # fig.savefig("plots/" + machineName + "Aggregate_Lock_" + str(currLocks) + ".png")
     106                plt.savefig("plots/" + machineName + "Aggregate_Lock_" + str(currLocks) + ".pgf")
    108107                fig.clf()
    109108
  • doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/run

    r2f6a9391 r4eebbcc  
    157157echo ""
    158158
    159 if [ ${runCFA} -eq ${true} ] ; then
    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
    169 fi # done CFA
    170 if [ ${runCPP} -eq ${true} ] ; then
    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
    180 fi # done CPP
     159if [ ${runCFA} -eq ${true} ] && [ ${order} -eq ${true} ]; then
     160    echo -n 'CFA-order '
     161fi
     162if [ ${runCPP} -eq ${true} ] && [ ${order} -eq ${true} ]; then
     163    echo -n 'CPP-order '
     164fi
     165if [ ${runCFA} -eq ${true} ] && [ ${baseline} -eq ${true} ]; then
     166    echo -n 'CFA-baseline '
     167fi
     168if [ ${runCPP} -eq ${true} ] && [ ${baseline} -eq ${true} ]; then
     169    echo -n 'CPP-baseline '
     170fi
     171if [ ${runCFA} -eq ${true} ] && [ ${rand} -eq ${true} ]; then
     172    echo -n 'CFA-rand '
     173fi
     174if [ ${runCPP} -eq ${true} ] && [ ${rand} -eq ${true} ]; then
     175    echo -n 'CPP-rand '
     176fi
    181177echo ""
    182178
     
    192188
    193189run_order() {
    194     echo "locks: "${1}
    195190    post_args=${1}
    196191
     
    217212
    218213for i in ${!locks[@]}; do
     214    echo "locks: "${locks[$i]}
    219215    if [ ${order} -eq ${true} ] ; then
    220216        run_order ${locks[$i]} ${lock_flags[$i]} 'order'
Note: See TracChangeset for help on using the changeset viewer.