upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/bench_wave64.py
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 16:58:07 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 16:58:07 +0100
commit0316d855bcc6d7705a53ad0fcf0bd6579f54d318 (patch)
tree9f9f01be33a393984f4d8df367bdb149dbe241ba /scripts/bench_wave64.py
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
fix(bench): report incomplete wave64 comparisons
A failed GPU configuration already makes the benchmark exit unsuccessfully, but the final line still claims all outputs match. Identify missing results in the summary so the text agrees with the outcome.
Diffstat (limited to 'scripts/bench_wave64.py')
-rw-r--r--scripts/bench_wave64.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/bench_wave64.py b/scripts/bench_wave64.py
index 14b397f97..b41c6e97e 100644
--- a/scripts/bench_wave64.py
+++ b/scripts/bench_wave64.py
@@ -110,9 +110,16 @@ def main():
110 print(f"no reference output from {ref_name}: cannot compare") 110 print(f"no reference output from {ref_name}: cannot compare")
111 return 1 111 return 1
112 bad = [n for n, _, _ in CONFIGS[1:] if n in hashes and hashes[n] != ref] 112 bad = [n for n, _, _ in CONFIGS[1:] if n in hashes and hashes[n] != ref]
113 missing = [n for n, _, _ in CONFIGS[1:] if n not in hashes]
113 print(f"reference output hash: {next(iter(ref))} ({ref_name})") 114 print(f"reference output hash: {next(iter(ref))} ({ref_name})")
114 print("emulated output equals the reference" if not bad else f"OUTPUT DIFFERS from the reference: {', '.join(bad)}") 115 if bad:
115 return 1 if bad or len(hashes) < len(CONFIGS) else 0 116 print(f"OUTPUT DIFFERS from the reference: {', '.join(bad)}")
117 if missing:
118 print(f"incomplete comparison: no complete result from {', '.join(missing)}")
119 if bad or missing:
120 return 1
121 print("emulated output equals the reference")
122 return 0
116 123
117 124
118if __name__ == "__main__": 125if __name__ == "__main__":