From b299eece9be3a516f592468d96fb5d653c4f3ccc Mon Sep 17 00:00:00 2001 From: Ben Richard <143630488+benrichard-amd@users.noreply.github.com> Date: Fri, 7 Nov 2025 09:33:43 -0500 Subject: [PATCH] Fix bug in rocprof-compute parsing (#1664) Were not handling the case where the eval result is None e.g. some columns have a peak value, but it is unused, so we use 'None', which evaluates to the None object. Return empty string in this case. --- projects/rocprofiler-compute/src/utils/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/src/utils/parser.py b/projects/rocprofiler-compute/src/utils/parser.py index e8093071f7..6b59b34d6a 100755 --- a/projects/rocprofiler-compute/src/utils/parser.py +++ b/projects/rocprofiler-compute/src/utils/parser.py @@ -346,7 +346,7 @@ class MetricEvaluator: local_expr_context, ) - if np.isnan(eval_result).any(): + if eval_result is None or np.isnan(eval_result).any(): return "" else: return eval_result