From 8aa9f32b2326e2c54ed697442378d4c8b7415b11 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 13 Oct 2022 22:20:24 +0200 Subject: Fix plotting issue in case of 'inf' values --- scripts/benchmark/plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/benchmark/plot.py b/scripts/benchmark/plot.py index b0b63df3..c36f476f 100644 --- a/scripts/benchmark/plot.py +++ b/scripts/benchmark/plot.py @@ -90,7 +90,8 @@ def plot_graphs(results, file_name, num_rows, num_cols, x_ticks = [v if not (i % 2) else "" for i, v in enumerate(x_ticks)] # Sets the y-data - y_list = [[r[y_key] if y_key in r.keys() else 0 for r in result] for y_key in y_keys[index]] + y_list = [[r[y_key] if y_key in r.keys() and not isinstance(r[y_key], str) else 0 for r in result] + for y_key in y_keys[index]] y_max = [max(y) if len(y) else 1 for y in y_list] y_max = max(y_max) if len(y_list) > 0 else 1 -- cgit v1.2.3 From 374eba3ee22f5ee3866420afbe31d8a71a47bc9a Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 13 Oct 2022 22:24:35 +0200 Subject: Fix plotting issue with a single row or column --- scripts/benchmark/plot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/benchmark/plot.py b/scripts/benchmark/plot.py index c36f476f..2cf5d04d 100644 --- a/scripts/benchmark/plot.py +++ b/scripts/benchmark/plot.py @@ -76,7 +76,12 @@ def plot_graphs(results, file_name, num_rows, num_cols, for col in range(num_cols): index = row * num_cols + col result = results[index] - ax = axes[row, col] + if num_rows == 1: + ax = axes[col] + elif num_cols == 1: + ax = axes[row] + else: + ax = axes[row, col] plt.sca(ax) print("[plot] Plotting subplot %d" % index) -- cgit v1.2.3 From c7d677e4a9b7090fb8abad4af83428f03432025c Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 13 Oct 2022 22:26:26 +0200 Subject: Update changelog --- CHANGELOG | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index f815d316..7088fb49 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +Development version (next version) +- Fixes two small issues in the plotting script + Version 1.5.3 - Fix a correctness issue with DGEMM on SM 7.5 Turing GPUs - Various minor fixes and enhancements -- cgit v1.2.3