diff options
author | Witold Baryluk <witold.baryluk+github@gmail.com> | 2020-10-04 10:22:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 10:22:00 +0000 |
commit | eb967a0943cbb6dfa1ca4190efc2d28de4ea584e (patch) | |
tree | c3e9591de414fe9be513ca505340f80613317d06 /scripts | |
parent | 615e5f0ff27e019524564c08340ea4408769be85 (diff) |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |