Ignore:
Timestamp:
Aug 11, 2020, 3:00:21 PM (14 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
cd02108
Parents:
7f6e9eb
Message:

Upgraded yield benchmark to use new parseargs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/benchcltr.hfa

    r7f6e9eb r5bcdc8c  
    2222        {"procstat",     no_argument      , 0, 'P'}, \
    2323        {"viewhalts",    no_argument      , 0, 'V'},
    24 
    25 #define BENCH_DECL \
    26         double duration = 5; \
    27         int nprocs = 1; \
    28         int nthreads = 1;
    2924
    3025#define BENCH_OPT_CASE \
     
    6055                break;
    6156
     57double duration = 5;
     58int nprocs = 1;
     59int nthreads = 1;
    6260bool silent = false;
     61bool continuous = false;
    6362bool procstats = false;
    6463bool viewhalts = false;
    6564
     65#define BENCH_OPT_CFA \
     66        {'d', "duration",  "Duration of the experiments in seconds", duration }, \
     67        {'t', "nthreads",  "Number of threads to use", nthreads }, \
     68        {'p', "nprocs",    "Number of processors to use", nprocs }, \
     69        {'S', "nostats",   "Don't print statistics", silent, parse_settrue }, \
     70        {'C', "constats",  "Regularly print statistics", continuous, parse_settrue }, \
     71        {'P', "procstat",  "Print statistics for each processors", procstats, parse_settrue }, \
     72        {'V', "viewhalts", "Visualize halts, prints timestamp and Processor id for each halt.", viewhalts, parse_settrue },
     73
    6674#ifdef __cforall
     75#include <parseargs.hfa>
     76
    6777struct cluster * the_benchmark_cluster = 0p;
    6878struct BenchCluster {
Note: See TracChangeset for help on using the changeset viewer.