Changeset 9235192c


Ignore:
Timestamp:
Jul 5, 2023, 2:10:59 PM (17 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
7c4416a
Parents:
7ce70e2
Message:

added support for missed gulps benchmark

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/actors/run

    r7ce70e2 r9235192c  
    8585}
    8686
     87#used for output formatting
     88column_headers="proc\ttime (s)"
     89
    8790# executor config
    8891batch='100'
     
    109112
    110113# bench_cores='1 2 4 8 16 24 32'
    111 # bench_cores='1 2 4 8 16 24 32 48'
    112 bench_cores='48'
     114bench_cores='1 2 4 8 16 24 32 48'
     115# bench_cores='48'
     116
     117# toggle specific experiment configs
     118missed_gulps=${true}
    113119
    114120# toggle benchmarks
    115 executor=${false}
    116 matrix=${false}
    117 repeat=${false}
     121executor=${true}
     122matrix=${true}
     123repeat=${true}
    118124balance=${false}
    119 static=${true}
    120 dynamic=${true}
     125static=${false}
     126dynamic=${false}
    121127
    122128# names=('CFA-LV' 'CFA-NS' 'CFA-R')
     
    143149# runPROTO=${false}
    144150# runAKKA=${false}
     151
     152if [ ${missed_gulps} -eq ${true} ] ; then
     153    bench_cores='2 4 8 16 24 32 48'
     154    column_headers="proc\tmissed\ttime (s)"
     155    names=('CFA')
     156    var_flags=('-D__STEAL=1 -DSEARCH=1 -DACTOR_STATS_QUEUE_MISSED')
     157    runCAF=${false}
     158    runUCPP=${false}
     159    runPROTO=${false}
     160    runAKKA=${false}
     161fi
    145162
    146163cfa=~/cfa-cc/driver/cfa
     
    196213
    197214for i in ${!names[@]}; do
    198         echo -n ${names[$i]}" "
     215    echo -n ${names[$i]}" "
    199216done
    200217if [ ${runCAF} -eq ${true} ] ; then
  • libcfa/src/concurrency/actor.hfa

    r7ce70e2 r9235192c  
    3838// show stats
    3939// #define ACTOR_STATS
     40
     41// used to run and only track missed queue gulps
     42#ifdef ACTOR_STATS
     43#define ACTOR_STATS_QUEUE_MISSED
     44#endif
    4045
    4146// forward decls
     
    129134        #ifdef ACTOR_STATS
    130135        unsigned int id;
     136    #endif
     137    #ifdef ACTOR_STATS_QUEUE_MISSED
    131138        size_t missed;                                                                          // transfers skipped due to being_processed flag being up
    132139        #endif
     
    338345        } // for
    339346
    340         #ifdef ACTOR_STATS
     347        #ifdef ACTOR_STATS_QUEUE_MISSED
    341348        size_t misses = 0;
    342349        for ( i; nrqueues ) {
     
    365372        printf("\tMessages stolen:\t\t\t%lu\n\tAverage steal size:\t\t\t%lu\n", __all_msgs_stolen, avg_steal);
    366373        #endif
     374
     375    #ifndef ACTOR_STATS
     376    #ifdef ACTOR_STATS_QUEUE_MISSED
     377    printf("\t%lu", misses);
     378    #endif
     379    #endif
    367380               
    368381}
Note: See TracChangeset for help on using the changeset viewer.