From c9b55cdb99494c4e73edbbf726d2506655e668fa Mon Sep 17 00:00:00 2001 From: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com> Date: Fri, 13 Nov 2026 13:32:12 -0500 Subject: [PATCH] RR end-to-end test: set WG_RR_COMPILE_WAIT_ALL itself e2e.py now writes "env WG_RR_COMPILE_WAIT_ALL 1" and a raised WG_RR_COMPILE_WAIT_MS as the job's first lines, before the runtime is loaded, so the first scenario's first frames run the opt-in variants instead of passing through while their kernels compile. Nobody has to set it by hand any more. Fixes #18 Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com> --- clean/rr_f/runtime/tests/e2e.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clean/rr_f/runtime/tests/e2e.py b/clean/rr_f/runtime/tests/e2e.py index 6a3db0c5..e7366c17 100644 --- a/clean/rr_f/runtime/tests/e2e.py +++ b/clean/rr_f/runtime/tests/e2e.py @@ -240,7 +240,11 @@ def run_gpu(out, stage, runs, perf_frames, name="e2e", leak=6, head=None, body=" if os.path.exists(work): shutil.rmtree(work) os.makedirs(os.path.join(work, "in")) - job = [f"runtime {os.path.join(stage, 'wronggpu_rr_runtime.dll')}"] + # the runtime's test-run setting (0.6.1, rc6 e2e note): set-device waits for the opt-in variants' kernels too, so that + # scenario A's first frames run them instead of passing through while they compile (the bit-exact checks would fail); + # the wait limit is raised for a cold driver cache. Set before the runtime is loaded (the host's env line). + job = ["env WG_RR_COMPILE_WAIT_ALL 1", "env WG_RR_COMPILE_WAIT_MS 600000", + f"runtime {os.path.join(stage, 'wronggpu_rr_runtime.dll')}"] if head: # WG_RR_HEAD for every instance of this run (e.g. fast) job.append(f"env WG_RR_HEAD {head}") if body: # WG_RR_BODY (default Z: the exact verification mode, so that the body