From 7b04b5edcba1e146cc98c5bcbf14965917c6beca Mon Sep 17 00:00:00 2001 From: Maxrio9 <70799635+Maxrio9@users.noreply.github.com> Date: Sun, 25 Oct 2026 20:48:15 +0100 Subject: [PATCH] cuda tests: guard prompt positions in window rows fixtures --- zig/tests/cuda/contract_window_rows.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig/tests/cuda/contract_window_rows.zig b/zig/tests/cuda/contract_window_rows.zig index d4bf7b7eda..eb2624db68 100644 --- a/zig/tests/cuda/contract_window_rows.zig +++ b/zig/tests/cuda/contract_window_rows.zig @@ -180,7 +180,7 @@ pub const Rows = struct { const hi = try a.alloc(i32, n); for (pos, slot, hi, 0..) |*p, *sl, *x, i| { // short histories, wrapped rings, the last position; gate 4: one stream's row at the bound, every row alike - p.* = @intCast(if (fill == .stress or i == n - 1) at -| 1 else if (i % 4 == 0) i % @min(40, shape.k) else (i * 7919) % shape.k); + p.* = @intCast(if (f.prompt) at + i else if (fill == .stress or i == n - 1) at -| 1 else if (i % 4 == 0) i % @min(40, shape.k) else (i * 7919) % shape.k); sl.* = @intCast(if (fill == .stress) 0 else i % f.streams); x.* = @intCast(at + i); }