feat(sampler): port linear MTP coupling and cooperative verify upstream

Port GitHub PRs #12 and #13 onto Codeberg upstream main, retaining upstream kernel-chain handling. Include the source Clang target-attribute fixes required by the host build; omit the KFD header workaround and unrelated fork work.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
committed 2026-10-22 22:58:08 +02:00
1 parent 123c439684
commit d912c694f3
37 files changed
+3730 -23

No files matched your search

+3 -1
View File
@@ -546,6 +546,9 @@ public:
/* Backs rad_step_fail(): stops the step like an operand rejection, with the caller's
* message. */
int step_fail(const char* what);
/* The device kernel `h` resolved to on this rank ("?" if it resolved none). For log
* attribution only. */
const char* ip_kernel_name(rad_op h) const;
private:
[[noreturn]] void fatal_issue(rad_op h, int64_t n, const char* why) const;
@@ -572,7 +575,6 @@ private:
* byte-compares the two results, finding kernels that are not a function of their inputs,
* which a host-vs-device comparison cannot detect. */
void oracle_repeat(rad_op h, const IssuePlan& dip, int64_t seq, int n_opd);
const char* ip_kernel_name(rad_op h) const;
/* The reference library's host plan for (op, band): the band's own host plan when a reference
* library won it, else one resolved from `registry_` on first use. Null when none exists. */
const IssuePlan* oracle_reference(rad_op h, int band);