Lines Matching refs:values
67 arg_t *values) {
80 (*values)[name].int_value = strtol(argv[++i], NULL, 0);
82 (*values)[name].char_value = argv[++i];
92 BandwidthBenchmark *createBandwidthBenchmarkObject(arg_t values) {
95 const char *name = values["type"].char_value;
97 if (values.count("size") > 0) {
98 size = values["size"].int_value;
139 if (!bench->setSize(values["size"].int_value)) {
144 if (values.count("num_warm_loops") > 0) {
145 bench->set_num_loops(values["num_warm_loops"].int_value);
147 if (values.count("num_loops") > 0) {
148 bench->set_num_loops(values["num_loops"].int_value);
212 arg_t *values) {
213 // Use some smaller values for the number of loops.
214 (*values)["num_warm_loops"].int_value = 1000000;
215 (*values)["num_loops"].int_value = 10000000;
217 if (!processBandwidthOptions(argc, argv, options, values)) {
220 if (values->count("size") > 0 && ((*values)["size"].int_value % 64) != 0) {
221 printf("The size values must be a multiple of 64.\n");
224 if (values->count("type") == 0) {
229 BandwidthBenchmark *bench = createBandwidthBenchmarkObject(*values);
248 (*values)["run_time"].int_value = run_time;
249 (*values)["size"].int_value = bench->size();
250 (*values)["num_warm_loops"].int_value = bench->num_warm_loops();
251 (*values)["num_loops"].int_value = bench->num_loops();
296 arg_t values;
297 if (!processThreadArgs(argc, argv, per_core_opts, &values)) {
313 args[i].bench = createBandwidthBenchmarkObject(values);
320 printf(" run_time = %ds\n", values["run_time"].int_value);
321 printf(" size = %d\n", values["size"].int_value);
322 printf(" num_warm_loops = %d\n", values["num_warm_loops"].int_value);
323 printf(" num_loops = %d\n", values["num_loops"].int_value);
326 if (!runThreadedTest(args, cpu_list.size(), values["run_time"].int_value)) {
334 arg_t values;
335 if (!processThreadArgs(argc, argv, multithread_opts, &values)) {
338 if (values.count("num_threads") == 0) {
342 int num_threads = values["num_threads"].int_value;
349 args[i].bench = createBandwidthBenchmarkObject(values);
356 printf(" run_time = %ds\n", values["run_time"].int_value);
357 printf(" size = %d\n", values["size"].int_value);
358 printf(" num_warm_loops = %d\n", values["num_warm_loops"].int_value);
359 printf(" num_loops = %d\n", values["num_loops"].int_value);
362 if (!runThreadedTest(args, num_threads, values["run_time"].int_value)) {
371 arg_t values;
372 values["size"].int_value = 0;
373 values["num_warm_loops"].int_value = 0;
374 values["num_loops"].int_value = 0;
375 if (!processBandwidthOptions(argc, argv, bandwidth_opts, &values)) {
379 size_t size = values["size"].int_value;
391 size_t num_warm_loops = values["num_warm_loops"].int_value;
392 size_t num_loops = values["num_loops"].int_value;
398 if (!(*it)->setSize(values["num_warm_loops"].int_value)) {