Changeset b6f2b21 for benchmark


Ignore:
Timestamp:
May 5, 2020, 11:35:45 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
4e74466
Parents:
f90d10f
Message:

Added the option to dynamically (at cluster creation time) enable/disable the user thread polling of I/O

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    rf90d10f rb6f2b21  
    5959        unsigned long int nthreads = 2;
    6060        unsigned long int nprocs   = 1;
     61        int flags = 0;
    6162
    6263        printf("Setting local\n");
     
    6667        for(;;) {
    6768                static struct option options[] = {
    68                         {"duration",  required_argument, 0, 'd'},
    69                         {"nthreads",  required_argument, 0, 't'},
    70                         {"nprocs",    required_argument, 0, 'p'},
    71                         {"bufsize",   required_argument, 0, 'b'},
     69                        {"duration",   required_argument, 0, 'd'},
     70                        {"nthreads",   required_argument, 0, 't'},
     71                        {"nprocs",     required_argument, 0, 'p'},
     72                        {"bufsize",    required_argument, 0, 'b'},
     73                        {"userthread", no_argument      , 0, 'u'},
    7274                        {0, 0, 0, 0}
    7375                };
    7476
    7577                int idx = 0;
    76                 int opt = getopt_long(argc, argv, "d:t:p:b:", options, &idx);
     78                int opt = getopt_long(argc, argv, "d:t:p:b:u", options, &idx);
    7779
    7880                const char * arg = optarg ? optarg : "";
     
    111113                                }
    112114                                break;
     115                        case 'u':
     116                                flags |= CFA_CLUSTER_IO_POLLER_USER_THREAD;
     117                                break;
    113118                        // Other cases
    114119                        default: /* ? */
     
    135140        {
    136141                Time start, end;
    137                 cluster cl = { "IO Cluster" };
     142                cluster cl = { "IO Cluster", flags };
    138143                the_cluster = &cl;
    139144                #if !defined(__CFA_NO_STATISTICS__)
Note: See TracChangeset for help on using the changeset viewer.