abi, sched: RadBatch::anchor_rows, ABI 36

A block drafter's query pass gets, for each drafting sequence, the row of its last committed
position in the context pass just run (StepSlot::hrow, written by the advance on the card).
LiLiCorr's correlator reads the context state there. Appended after bidi_used; main ships
ABI 35 and an appended field is read past the end of an older engine's copy, so the version is
36 and the layout table follows. The pass key reads the pointer.
This commit is contained in:
keptn42 committed 2026-11-04 22:08:06 +01:00
1 parent a1b7643310
commit dccc6329a9
10 files changed
+40 -8

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ extern "C" {
* version is refused at load with both versions printed. Each also exports the layout's fingerprint
* (rad_abi_layout.h), so two layouts given one number are refused as well. A new optional export
* (e.g. rad_plugin_reference) is not a change of shape: a plugin without it gets the default. */
#define RAD_ABI_VERSION 35u
#define RAD_ABI_VERSION 36u
/* ================================================================== plugin identity */
/* One value per plugin, not flags (QUANT is 3). RAD_PLUGIN_QUANT is a quantiser plugin:
+1
View File
@@ -104,6 +104,7 @@ ABI_FIELD(RadBatch, bidi_row)
ABI_FIELD(RadBatch, bidi_n)
ABI_FIELD(RadBatch, bidi_seq)
ABI_FIELD(RadBatch, bidi_used)
ABI_FIELD(RadBatch, anchor_rows)
ABI_STRUCT(RadBufDecl)
ABI_FIELD(RadBufDecl, dtype)
ABI_FIELD(RadBufDecl, rank)
+7
View File
@@ -356,6 +356,13 @@ typedef struct RadBatch {
const int32_t* bidi_n; /* host */
const int32_t* bidi_seq; /* host */
const int32_t* bidi_used; /* device */
/* ---- appended in ABI 36 (a block drafter's anchor row) */
/* A block drafter's query pass (draft_pass 1): [n_seq] device, for each drafting sequence the
* row of its last committed position in the context pass just run, whose rows are the verify
* step's in order. -1 for a row the card did not position. A drafter that conditions on the
* context state at the anchor (LiLiCorr) gathers it there; the query rows themselves sit past
* that position. Null on every other pass. */
const int32_t* anchor_rows;
} RadBatch;
/* What a generator pass carries beside the step batch's own fields, which keep their meanings: