From 98d701c054b9c9dfa22d2b7bd811213f070bbebf Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Wed, 15 Oct 2025 14:58:08 +0200 Subject: [PATCH] Diff device sections on mismatch in nvbench_compare.py (#278) --- scripts/nvbench_compare.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/nvbench_compare.py b/scripts/nvbench_compare.py index d5ff0b5..4d4e4c4 100755 --- a/scripts/nvbench_compare.py +++ b/scripts/nvbench_compare.py @@ -5,6 +5,7 @@ import math import os import sys +import jsondiff import tabulate from colorama import Fore from nvbench_json import reader @@ -371,9 +372,13 @@ def main(): global all_devices all_devices = cmp_root["devices"] - # This is blunt but works for now: if ref_root["devices"] != cmp_root["devices"]: print("Device sections do not match.") + print( + jsondiff.diff( + ref_root["devices"], cmp_root["devices"], syntax="symmetric" + ) + ) sys.exit(1) compare_benches(