Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3dcbbc1
cuda: the parked-page reading logs at debug level
jschmied Nov 4, 2026
a807dfe
changelog: leave the released 1.2.2 entry as it was (#2164)
jschmied Nov 6, 2026
9ca1fe3
changelog: #2164's line from lines/2164.txt in place of its own
ashhart Nov 10, 2026
7c16585
feat(cuda): prompt attention at two query heads a block
laudney Nov 8, 2026
39061aa
docs(changelog): the two-heads-a-block prompt attention
laudney Nov 8, 2026
de825ff
fix(contract): merge_segs records for nvcc 13.2 and 13.3
laudney Nov 9, 2026
b92c0e7
cuda kda: refuse a model's KDA shape other than the kernels' before l…
ajensenwaud Nov 5, 2026
4b0adc9
cuda kda: review: dk, dv and taps held to kda.cuh's DK, DV and TAPS b…
ajensenwaud Nov 7, 2026
cd30646
changelog: #2338 under Unreleased
ashhart Nov 10, 2026
91fd1c8
fabric/tp: in-process ranks on one GPU, so tests can run more ranks t…
Defilan Nov 7, 2026
7dd2000
deepseek_v41: uneven sampling and dense split KV tests at three ranks
Defilan Nov 7, 2026
4f3bf63
deepseek_v41: the GPU runner over the real images, and the exchanges …
Defilan Nov 7, 2026
31474bb
deepseek_v41: the lockstep test at two and three ranks
Defilan Nov 7, 2026
5f524d4
fabric/tp: device.run joins its ranks when a spawn fails, and a size …
Defilan Nov 7, 2026
d9270b4
deepseek_v41: the embedding check takes every share edge at worlds 2,…
Defilan Nov 7, 2026
128b1f5
deepseek_v41: the exchanges check splits the vocabulary with the fami…
Defilan Nov 9, 2026
1b4d21c
deepseek_v41: the embed check takes its edge ids from partition.share
Defilan Nov 9, 2026
12251a5
changelog: #2491 under Unreleased
ashhart Nov 10, 2026
cd4432e
qwen draw: a sampled row's top-k skips 32-logit blocks that cannot be…
mrv777 Nov 8, 2026
91cb549
changelog: the sampled top-k line names #2507
mrv777 Nov 8, 2026
cc2fc9d
changelog: the top-k line says which CUDA draws reach the host (#2507)
mrv777 Nov 8, 2026
4c22964
changelog: the top-k line back under Unreleased (#2507)
mrv777 Nov 8, 2026
c879aab
changelog: #2507's line from lines/2507.txt in place of its own
ashhart Nov 10, 2026
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
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- Qwen3.8-27B on Metal: a sampled row's top-k skips 32 logits at a time that cannot beat the k-th candidate, still refusing any non-finite logit, with the same candidates and replies. On an M5 Ultra with Qwen3.8-27B MLX 4-bit and its DFlash2 drafter, sampled verify rounds take 1.6 ms less and sampled decode is 6% faster; greedy is unchanged. The Qwen 3.5/3.6 CUDA engine shares this host draw for each first token and for grammar-masked windows; its unmasked sampled verify rows draw on the GPU. CUDA is not measured (#2507). Thanks to @mrv777.

- Tests: `tp.device` runs N tensor-parallel ranks as threads on one GPU with device copies, so DeepSeek-V4.1's exchanges are now tested at a world of 3 (uneven sampling, dense split KV and lockstep), and `zig build dsv41-test` builds `tf-dsv41-test` over the family's own kernel images (#2491, refs #2270). Thanks to @Defilan.

- CUDA: a model whose KDA heads or conv window differ from the kernels' (128 keys, 128 values, 4 taps) is refused at load with `KdaGeometry`, before anything is allocated or launched, and a host test ties those numbers to `kda.cuh` (#2338, refs #850). Thanks to @ajensenwaud.

- CUDA: the start-up note about pages parked on the kernel's per-CPU lists logs at debug level, so whether it shows no longer depends on the box's memory state; the budget still counts those pages (#2164, follow-up to #2127). Thanks to @jschmied.

- CUDA: the families' sampled rule comes from one function, `cuda.sample.ruleFor`, in place of seven copies (MiniMax M3's hand-filled `Rule` included); a host test checks each old form byte for byte over 25,480 settings, and the fatbins are unchanged (#2680, #2460 item 3). Thanks to @jschmied.

Expand Down Expand Up @@ -67,6 +74,7 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel
- Living Weights on Nemotron (`--slide`): a lesson's pocket goes only into the layers whose subject rows carry it and that pass the full verifier, and the neurons it needs are shrunk to what passes; a rejected shrink restores the exact rows and count. A correction overturns a shipped answer with an explicit additive fit and checked deletion of the original, and one that depends on an earlier pocket is refused by fact before fitting. Pretrained weights and kernels are unchanged, and serving without `--slide` is unchanged. `TF_SLIDE_POCKET_DUMP` is read through the environment table: blank means no dump, and a path with a control character is refused at startup (#2025, part of #1968).

- Server: `--unix-socket PATH` serves on a new owner-only Unix socket instead of TCP, so a local client reaches the server without its requests crossing a network interface. It refuses an existing path, a parent directory others can write to (unless sticky) and the TCP-only flags, checks each peer's user, and is refused on Windows (#2389). Thanks to @kotevcode.
- CUDA kernels: `pattn_kernel` gains instances at two query heads a block for head dims 128 and 64, the prompt attention that dots.mocr (12 heads over 2), GLM-OCR (16 over 8) and Nemotron Parse (16 over 8) need on CUDA, with contract entries, planted controls and records for five SMs; paged decode at head 128 gets contract entries at those layouts and `tf_nemo_attn_merge_segs` its record. No served kernel's code changes (#2609, part of #1927). Thanks to @laudney.

- CUDA EXL3 experts: a second finish kernel clamps silu's output, `min(silu(g), L) · clip(u, −L, L)` (Ling-3.1's order), when a layer asks for it. Every other format, and bf16 or SwiGLU-OAI activations, refuse it before launch, and existing EXL3 models are unchanged (#2336). Thanks to @ajensenwaud.

Expand Down Expand Up @@ -888,7 +896,6 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- On Ryzen AI Max (RDNA 3.5) GPUs, one- and two-row decode launches use narrower stream tiles, so Qwen3.6-35B-A3B chat decodes about 18% faster with drafts on, and Qwen3.8-27B about 5% faster, with the same tokens (#1855). Thanks to @AbrahamCete.

- Flash Next on RDNA 3.5 iGPUs (gfx1150 to gfx1153) fills prompts in 4,096-row chunks by default on one GPU, falling back to 1,024 when the larger chunk would admit fewer streams. Tokens are unchanged. The larger chunk's scratch holds about 4.6 GiB more device memory; `--policy prefill_step=1024` gives it back (#1651, fixes #1649). Thanks to @gilby.

- CUDA's Qwen DFlash2 drafters must declare sliding attention on every layer (`use_sliding_window` and one `sliding_attention` per layer), which the kernels run, so a drafter declaring a full-attention layer is refused before loading instead of running through the sliding ring (#1946, part of #1863). Thanks to @garvrao80.

Expand Down
2 changes: 1 addition & 1 deletion zig/build/cuda_row_contracts.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn host(b: *std.Build, target: std.Build.ResolvedTarget, cuda: *std.Build.Mo
step.dependOn(&radio_run.step);
const stress = b.createModule(.{ .root_source_file = b.path("zig/tests/cuda/contract_group_stress_host.zig"), .target = target, .optimize = .debug, .link_libc = true, .imports = &.{ .{ .name = "cuda", .module = cuda }, .{ .name = "core", .module = core } } });
b.step("test-group-sums-stress-host", "Actual group-sum stress inputs distinguish reduced sums at every seed").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = stress })).step);
for ([_][]const u8{ "contract_norms_tail.zig", "contract_l2.zig", "contract_act_round.zig", "contract_embed.zig", "contract_qk_round.zig", "contract_window_rows.zig", "contract_hc_mix.zig", "contract_qk_l2.zig", "contract_act_l2.zig", "shared_rows_abi_host.zig" }) |name| {
for ([_][]const u8{ "contract_norms_tail.zig", "contract_l2.zig", "contract_act_round.zig", "contract_embed.zig", "contract_qk_round.zig", "contract_window_rows.zig", "contract_hc_mix.zig", "contract_qk_l2.zig", "contract_act_l2.zig", "contract_paged_attn.zig", "shared_rows_abi_host.zig" }) |name| {
const m = b.createModule(.{
.root_source_file = b.path(b.pathJoin(&.{ "zig/tests/cuda", name })),
.target = target,
Expand Down
23 changes: 17 additions & 6 deletions zig/build/dsv41_cuda.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn assemble(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.b
return m;
}
pub fn steps(b: *std.Build) void {
_ = @import("dsv41_images.zig").images(b, b.option([]const u8, "dsv41-nvcc", "Optional family nvcc compiler"), b.option([]const u8, "dsv41-fatbins", "Optional complete family prebuilt image directory"));
const real = @import("dsv41_images.zig").images(b, b.option([]const u8, "dsv41-nvcc", "Optional family nvcc compiler"), b.option([]const u8, "dsv41-fatbins", "Optional complete family prebuilt image directory"));
_ = @import("dsv41_images.zig").module(b, b.graph.host, .Debug, runtime(b, b.graph.host, false), null);
const check_target = b.resolveTargetQuery(.{ .cpu_arch = b.graph.host.result.cpu.arch, .os_tag = .linux, .abi = .gnu });
const heads_check = b.addExecutable(.{ .name = "tf-dsv41-prefill-heads", .root_module = module(b, check_target, "prefill_heads_check.zig", false) });
Expand Down Expand Up @@ -87,13 +87,24 @@ pub fn steps(b: *std.Build) void {
const output = record.captureStdOut(.{});
b.step("emit-dsv41-catalog", "Record symbol resolution without CUDA device work").dependOn(&b.addInstallFile(output, "dsv41-launches.txt").step);
const runner_base = module(b, target, "cuda_test.zig", true);
const runner = b.addExecutable(.{ .name = "tf-dsv41-test", .root_module = b.createModule(.{
const runner = b.addExecutable(.{ .name = "tf-dsv41-test", .root_module = runnerModule(b, target, runner_base.import_table.get("cuda").?, runner_base.import_table.get("dsv41_kernels").?) });
_ = runner.getEmittedBin();
b.step("compile-dsv41-runner", "Emit the supplied device fixture runner with nonexecuted synthetic images").dependOn(&runner.step);
const gpu = b.step("dsv41-test", "Install tf-dsv41-test for this host over the family images (-Ddsv41-nvcc or -Ddsv41-fatbins)");
const im = real orelse return gpu.dependOn(&b.addFail("dsv41-test needs -Ddsv41-nvcc=PATH or -Ddsv41-fatbins=DIR").step);
// the family's images only: the runner's commands launch no runtime kernels
const cuda = runtime(b, b.graph.host, false);
const dk = @import("dsv41_images.zig").module(b, b.graph.host, .Debug, cuda, im);
gpu.dependOn(&b.addInstallArtifact(b.addExecutable(.{ .name = "tf-dsv41-test", .root_module = runnerModule(b, b.graph.host, cuda, dk) }), .{}).step);
}

/// tests/cuda/dsv41_main.zig over `cuda` and `dk`, plus `tp` and the family's `partition.zig` for the exchanges.
fn runnerModule(b: *std.Build, target: std.Build.ResolvedTarget, cuda: *std.Build.Module, dk: *std.Build.Module) *std.Build.Module {
return b.createModule(.{
.root_source_file = b.path("zig/tests/cuda/dsv41_main.zig"),
.target = target,
.optimize = .Debug,
.link_libc = true,
.imports = &.{ .{ .name = "cuda", .module = runner_base.import_table.get("cuda").? }, .{ .name = "dsv41_kernels", .module = runner_base.import_table.get("dsv41_kernels").? } },
}) });
_ = runner.getEmittedBin();
b.step("compile-dsv41-runner", "Emit the supplied device fixture runner with nonexecuted synthetic images").dependOn(&runner.step);
.imports = &.{ .{ .name = "cuda", .module = cuda }, .{ .name = "dsv41_kernels", .module = dk }, .{ .name = "tp", .module = @import("tp.zig").module(b, target, .Debug, cuda) }, .{ .name = "dsv41_partition", .module = shared.module(b, target, "partition.zig") } },
});
}
7 changes: 6 additions & 1 deletion zig/build/glm_family_host.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ pub fn steps(b: *std.Build, cuda: *std.Build.Module, glm: *std.Build.Module, mod
const warm_run = b.addRunArtifact(b.addTest(.{ .root_module = warm, .filters = &.{"GLM warm peers:"} }));
b.step("test-glm-warm-peers-host", "Selected GLM warm-up peers and NCCL posting failures without devices").dependOn(&warm_run.step);
step.dependOn(&warm_run.step);
b.step("test-kda-host", "Shared KDA launch ABI against its frozen predecessor, without CUDA execution").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = cuda, .filters = &.{"shared KDA:"} })).step);
const kda = b.step("test-kda-host", "Shared KDA launch ABI against its frozen predecessor, without CUDA execution");
kda.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = cuda, .filters = &.{"shared KDA:"} })).step);
const kda_header = b.createModule(.{ .root_source_file = b.path("zig/kda_header_host.zig"), .target = host, .optimize = .debug, .imports = &.{.{ .name = "cuda", .module = cuda }} });
const kda_header_run = b.addRunArtifact(b.addTest(.{ .root_module = kda_header }));
kda.dependOn(&kda_header_run.step);
step.dependOn(&kda_header_run.step);
const startup = b.createModule(.{ .root_source_file = b.path("zig/src/families/glm/cuda_start_test.zig"), .target = host, .optimize = .debug });
const startup_run = b.addRunArtifact(b.addTest(.{ .root_module = startup }));
b.step("test-glm-startup-host", "Page refusals propagate through rank liveness before engine construction").dependOn(&startup_run.step);
Expand Down
2 changes: 1 addition & 1 deletion zig/build/qwen35_cache_host.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn tests(b: *std.Build) void {
.imports = &.{ .{ .name = "metal", .module = fake }, .{ .name = "lanes", .module = lanes }, .{ .name = "kernel_sources", .module = sources } },
});
b.step("test-qwen35-cache-host", "Qwen2B retained bytes, paged images and resumed host-reference tokens").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = root, .filters = &.{"Qwen retained:"} })).step);
const pure = &.{ "admit the affine 2B", "admit untied heads", "text_config parses", "a top-level config", "the geometry refuses", "the Python loader's refusals", "candidate selection preserves", "a masked draw", "a stream's cache bytes" };
const pure = &.{ "admit the affine 2B", "admit untied heads", "text_config parses", "a top-level config", "the geometry refuses", "the Python loader's refusals", "candidate selection preserves", "a masked draw", "bounded BF16 keys", "the blocked selection", "a non-finite word inside", "a stream's cache bytes" };
b.step("test-qwen35-metal-host", "Qwen2B geometry, keyed draws and state sizing on the CPU").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = root, .filters = pure })).step);
}

Expand Down
8 changes: 8 additions & 0 deletions zig/kda_header_host.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//! Shared KDA's widths in Zig against kda.cuh's, so a kernel change cannot leave kda.geometry's refusal behind.
const std = @import("std");
const kda = @import("cuda").kda;

test "shared KDA: kda.zig's dk, dv and taps are kda.cuh's DK, DV and TAPS" {
const line = std.fmt.comptimePrint("constexpr int DK = {d}, DV = {d}, TAPS = {d};", .{ kda.dk, kda.dv, kda.taps });
try std.testing.expect(std.mem.indexOf(u8, @embedFile("kernels/cuda/common/kda.cuh"), line) != null);
}
1 change: 1 addition & 0 deletions zig/kernels/cuda/contract_controls_set.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

#include "contract_controls.cu"
#include "contract_js_controls.cuh"
#include "contract_dense_controls.cuh"
44 changes: 44 additions & 0 deletions zig/kernels/cuda/contract_dense_controls.cuh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Planted controls for the dense decoders' prompt rows: pattn at two heads a block, values from the next lane's dims.

// Included by contract_controls_set.cu after contract_controls.cu, whose PATTN_VLANE fault and headers it reuses.

namespace tf_prefill_attention {
extern "C" __global__ void __launch_bounds__(256, 1) tf_ctl_pattn_128_hpc2(const __nv_bfloat16* __restrict__ q, const __nv_bfloat16* __restrict__ kc,
const __nv_bfloat16* __restrict__ vc, __nv_bfloat16* __restrict__ out, int p0,
int W, int H, int HK, int G, float scale, const int* __restrict__ PT, long long PS) {
constexpr int D = 128, WARPS = 8, HPC = 2, NS = 8;
constexpr bool causal = true;
constexpr int skip = 0;
constexpr bool P256 = false, HPAGED = false, F8 = false, HM = false, IDS = false;
constexpr int CAP = 0, PTOK = 1, PN = 0;
const float *ks = nullptr, *vs = nullptr;
const int HO = H;
auto first_row = [] { return blockIdx.x * 16 * (WARPS / HPC); };
#include "prefill_attention_rows.cuh"
}

extern "C" __global__ void __launch_bounds__(256, 1) tf_ctl_pattn_64_hpc2(const __nv_bfloat16* __restrict__ q, const __nv_bfloat16* __restrict__ kc,
const __nv_bfloat16* __restrict__ vc, __nv_bfloat16* __restrict__ out, int p0,
int W, int H, int HK, int G, float scale, const int* __restrict__ PT, long long PS) {
constexpr int D = 64, WARPS = 8, HPC = 2, NS = 8;
constexpr bool causal = true;
constexpr int skip = 0;
constexpr bool P256 = false, HPAGED = false, F8 = false, HM = false, IDS = false;
constexpr int CAP = 0, PTOK = 1, PN = 0;
const float *ks = nullptr, *vs = nullptr;
const int HO = H;
auto first_row = [] { return blockIdx.x * 16 * (WARPS / HPC); };
#include "prefill_attention_rows.cuh"
}
} // namespace tf_prefill_attention

// Paged decode at head 128 (Nemotron's segs body), one planted fault: values from the neighbouring lane's dims.
namespace tf_ctl_paged {
#define SEG_HD 128
#define SEG_KW (128 / 2 + 2)
#define SEG_WIDE 1
#define SEG_VLANE 1
#define SEG_CHUNK tf_ctl_nemo_attn_chunk_segs
#define SEG_MERGE tf_ctl_nemo_attn_merge_segs
#include "paged_attn_segs.cuh"
} // namespace tf_ctl_paged
4 changes: 2 additions & 2 deletions zig/kernels/cuda/paged_attn_segs.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#define SEG_E (SEG_WIDE ? 8 : 4)
#ifndef SEG_VLANE
#define SEG_VLANE 0 // 1 in contract_controls.cu only: the narrow form reads its values from the neighbouring lane's dims
#define SEG_VLANE 0 // 1 in the planted controls only: values from the neighbouring lane's dims
#endif

extern "C" __global__ void __launch_bounds__(256) SEG_CHUNK(const AttnSegs sg, const __nv_bfloat16* __restrict__ QKV,
Expand Down Expand Up @@ -79,7 +79,7 @@ extern "C" __global__ void __launch_bounds__(256) SEG_CHUNK(const AttnSegs sg, c
for (int j = 0; j < TILE; ++j) {
const float p = ps[g][j];
#if SEG_WIDE
const uint4 v = *reinterpret_cast<const uint4*>(&vw[j][4 * jj]);
const uint4 v = *reinterpret_cast<const uint4*>(&vw[j][4 * (jj ^ SEG_VLANE)]);
const uint32_t vv[4] = {v.x, v.y, v.z, v.w};
#pragma unroll
for (int e = 0; e < 4; ++e) {
Expand Down
8 changes: 8 additions & 0 deletions zig/kernels/cuda/prefill_attention.cu
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ template __global__ void tf_prefill_attention::pattn_kernel<128, 8, 8, 8>(const
template __global__ void tf_prefill_attention::pattn_kernel<64, 8, 4, 8>(const __nv_bfloat16* __restrict__,
const __nv_bfloat16* __restrict__, const __nv_bfloat16* __restrict__, __nv_bfloat16* __restrict__, int, int, int,
int, int, float, const int* __restrict__, long long);
// Head dim 128, eight warps, two query heads a block, eight staging slots (dense OCR decoders: 2 or 6 heads a KV head).
template __global__ void tf_prefill_attention::pattn_kernel<128, 8, 2, 8>(const __nv_bfloat16* __restrict__,
const __nv_bfloat16* __restrict__, const __nv_bfloat16* __restrict__, __nv_bfloat16* __restrict__, int, int, int,
int, int, float, const int* __restrict__, long long);
// Head dim 64, eight warps, two query heads a block, eight staging slots (dense OCR decoders: 2 heads a KV head).
template __global__ void tf_prefill_attention::pattn_kernel<64, 8, 2, 8>(const __nv_bfloat16* __restrict__,
const __nv_bfloat16* __restrict__, const __nv_bfloat16* __restrict__, __nv_bfloat16* __restrict__, int, int, int,
int, int, float, const int* __restrict__, long long);
// Head dim 64, eight warps, four query heads a block, eight staging slots (LFM2's 4 heads a KV head, causal or trees).
template __global__ void tf_prefill_attention::tree_kernel<64, 8, 4, 8>(const __nv_bfloat16* __restrict__,
const __nv_bfloat16* __restrict__, const __nv_bfloat16* __restrict__, __nv_bfloat16* __restrict__, const int* __restrict__, int, int, int, int, int, float);
Expand Down
16 changes: 16 additions & 0 deletions zig/src/core/contract/dense_attention_records.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! The dense OCR decoders' prompt rows: pattn_kernel at two query heads a block, head 128 and 64, every SM (nvcc 13.0).
const std = @import("std");
const registry = @import("registry.zig");
const R = registry.CudaRecord;

const hpc2_128 = "_ZN20tf_prefill_attention12pattn_kernelILi128ELi8ELi2ELi8EEEvPK13__nv_bfloat16S3_S3_PS1_iiiiifPKix";
const hpc2_64 = "_ZN20tf_prefill_attention12pattn_kernelILi64ELi8ELi2ELi8EEEvPK13__nv_bfloat16S3_S3_PS1_iiiiifPKix";

pub const cuda = [_]R{
.{ .launch = .{ .name = "dense pattn128 hpc2", .image = "prefill_attention", .symbol = hpc2_128, .threads = 256, .dynamic = 65536, .opt_in = true }, .usage = .{ .{ .regs = 206, .static = 0, .bound = 256 }, .{ .regs = 206, .static = 0, .bound = 256 }, .{ .regs = 206, .static = 0, .bound = 256 }, .{ .regs = 231, .static = 0, .bound = 256 }, .{ .regs = 231, .static = 0, .bound = 256 } } },
.{ .launch = .{ .name = "dense pattn64 hpc2", .image = "prefill_attention", .symbol = hpc2_64, .threads = 256, .dynamic = 32768, .opt_in = true }, .usage = .{ .{ .regs = 148, .static = 0, .bound = 256 }, .{ .regs = 148, .static = 0, .bound = 256 }, .{ .regs = 148, .static = 0, .bound = 256 }, .{ .regs = 164, .static = 0, .bound = 256 }, .{ .regs = 164, .static = 0, .bound = 256 } } },
};

test "dense attention records: every launch fits every SM by its measured record" {
for (cuda) |r| try std.testing.expectEqual(@as(usize, 0), try registry.checkCuda(std.testing.allocator, &.{r}, true));
}
Loading
Loading