upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 21:32:26 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 21:32:26 +0100
commit0db72c42a55825b90a3b3f8d89fd0463e9071aba (patch)
treeeeb3b9a57bf68f9f8cc7c8b516ccd5a49f26a90e /scripts/run_gpu_tests.py
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
fix(tests): require full Mandelbrot readback in the GPU suite
The oracle accepts arbitrary square frames, so an empty or one-pixel readback passed a draw that was expected to produce 4096 pixels.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 7cd0e9dbf..e0ba2eb92 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1242,9 +1242,8 @@ def run_suite(a, work: str) -> int:
1242 problem = ij_computed_problem(list(struct.iter_unpack("<4I", source.read()))) 1242 problem = ij_computed_problem(list(struct.iter_unpack("<4I", source.read())))
1243 ok, detail = not problem, problem or "computed I/J pair words and v/2 within 1e-6" 1243 ok, detail = not problem, problem or "computed I/J pair words and v/2 within 1e-6"
1244 elif name == "ps_mandelbrot": 1244 elif name == "ps_mandelbrot":
1245 with open(raw, "rb") as source: 1245 px = read_raw_u32(raw) if os.path.isfile(raw) else []
1246 px = list(struct.iter_unpack("<4I", source.read())) 1246 problem = frame_problem(px) or mandelbrot_problem(px)
1247 problem = mandelbrot_problem(px)
1248 ok, detail = not problem, problem or f"{len(px)}/{len(px)} iteration counts match the float32 model" 1247 ok, detail = not problem, problem or f"{len(px)}/{len(px)} iteration counts match the float32 model"
1249 else: 1248 else:
1250 ok, detail = False, "no checker defined" 1249 ok, detail = False, "no checker defined"