- Timestamp:
- May 5, 2020, 11:35:45 AM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/readv.cfa
rf90d10f rb6f2b21 59 59 unsigned long int nthreads = 2; 60 60 unsigned long int nprocs = 1; 61 int flags = 0; 61 62 62 63 printf("Setting local\n"); … … 66 67 for(;;) { 67 68 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'}, 72 74 {0, 0, 0, 0} 73 75 }; 74 76 75 77 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); 77 79 78 80 const char * arg = optarg ? optarg : ""; … … 111 113 } 112 114 break; 115 case 'u': 116 flags |= CFA_CLUSTER_IO_POLLER_USER_THREAD; 117 break; 113 118 // Other cases 114 119 default: /* ? */ … … 135 140 { 136 141 Time start, end; 137 cluster cl = { "IO Cluster" };142 cluster cl = { "IO Cluster", flags }; 138 143 the_cluster = &cl; 139 144 #if !defined(__CFA_NO_STATISTICS__)
Note: See TracChangeset
for help on using the changeset viewer.