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:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 18:48:08 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 18:48:08 -0500
commit864337351bc11a250db77c2fcdd3ba6f1d0f455f (patch)
tree1b9fb69662877977ec6b5da697206fd1bdcf929f /scripts/bench_wave64.py
parent54ed404defd035465ece0f2beeb792cf51179691 (diff)
parentb06d096ad0943d5eda9bf1b17b3c3346688fc1f6 (diff)
Merge main into RT-LIST139 (#396)
Merged on top of the merge made for #395 (main 507029d1e plus RT-QUEUE35 and RT-ALLOC9). No conflicts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'scripts/bench_wave64.py')
-rw-r--r--scripts/bench_wave64.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/bench_wave64.py b/scripts/bench_wave64.py
index e6fd59737..57253cb57 100644
--- a/scripts/bench_wave64.py
+++ b/scripts/bench_wave64.py
@@ -44,7 +44,13 @@ def build(work, name, emulate, llvm_mc):
44 r = subprocess.run([sys.executable, "-I", BUILD_PY, out, name], env=env, capture_output=True, text=True) 44 r = subprocess.run([sys.executable, "-I", BUILD_PY, out, name], env=env, capture_output=True, text=True)
45 if r.returncode: 45 if r.returncode:
46 sys.exit(r.stdout + r.stderr) 46 sys.exit(r.stdout + r.stderr)
47 return os.path.join(out, "spirv", name + ".spv") 47 spv = os.path.join(out, "spirv", name + ".spv")
48 if not os.path.isfile(spv):
49 mode = "emulated" if emulate else "native"
50 message = f"{name}: {mode} build did not produce a SPIR-V module"
51 reason = (r.stdout + r.stderr).strip()
52 sys.exit(f"{message}\n{reason}" if reason else message)
53 return spv
48 54
49 55
50def segments(spv: str) -> tuple[int, int] | None: 56def segments(spv: str) -> tuple[int, int] | None: