Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zig/tests/cuda/contract_window_rows.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down