Changeset dd4e2d7 for benchmark/io
- Timestamp:
- May 8, 2020, 2:42:15 PM (5 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:
- 6c12fd28
- Parents:
- 0335620
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/readv.cfa
r0335620 rdd4e2d7 59 59 unsigned long int nthreads = 2; 60 60 unsigned long int nprocs = 1; 61 int flags = 0; 61 unsigned flags = 0; 62 unsigned sublen = 16; 62 63 63 64 arg_loop: … … 70 71 {"userthread", no_argument , 0, 'u'}, 71 72 {"submitthread", no_argument , 0, 's'}, 73 {"submitlength", required_argument, 0, 'l'}, 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:us ", options, &idx);78 int opt = getopt_long(argc, argv, "d:t:p:b:usl:", options, &idx); 77 79 78 80 const char * arg = optarg ? optarg : ""; … … 116 118 case 's': 117 119 flags |= CFA_CLUSTER_IO_POLLER_THREAD_SUBMITS; 120 break; 121 case 'l': 122 sublen = strtoul(arg, &end, 10); 123 if(*end != '\0' && sublen < 16) { 124 fprintf(stderr, "Submit length must be at least 16, was %s\n", arg); 125 goto usage; 126 } 127 flags |= (sublen << CFA_CLUSTER_IO_BUFFLEN_OFFSET); 118 128 break; 119 129 // Other cases
Note: See TracChangeset
for help on using the changeset viewer.