From eb967a0943cbb6dfa1ca4190efc2d28de4ea584e Mon Sep 17 00:00:00 2001 From: Witold Baryluk Date: Sun, 4 Oct 2020 10:22:00 +0000 Subject: Fix a typo in benchmark when running fp 16 vs 32 The intention here was to limit the iteration range to common indexes only. Fix that. --- scripts/benchmark/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/benchmark/benchmark.py b/scripts/benchmark/benchmark.py index c715decd..81f1ec90 100644 --- a/scripts/benchmark/benchmark.py +++ b/scripts/benchmark/benchmark.py @@ -63,7 +63,7 @@ def run_benchmark(name, arguments_list, precision, num_runs, platform, device, c all_arguments = [arg if arg != "-precision 16" else "-precision 32" for arg in all_arguments] benchmark_output = utils.run_binary(binary, all_arguments) result_extra = utils.parse_results(benchmark_output) - for index in range(len(min(result, result_extra))): + for index in range(min(len(result), len(result_extra))): result[index]["GBs_1_FP32"] = result_extra[index]["GBs_1"] result[index]["GFLOPS_1_FP32"] = result_extra[index]["GFLOPS_1"] for id in COMPARISON_IDS: -- cgit v1.2.3