From dd8201d20d62591ec18177b64de4f3a67a948660 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 22 Oct 2026 12:44:40 +0200 Subject: [PATCH] metal: link stubs for hc_mean_streams and route_marginal_stats (STRATA_TAP_FILE / STRATA_ROUTE_STATS hooks of the shared Verifier; owner round 9 G6 link failure) --- metal/src/engine/stubs_023.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 metal/src/engine/stubs_023.cpp diff --git a/metal/src/engine/stubs_023.cpp b/metal/src/engine/stubs_023.cpp new file mode 100644 index 00000000..49aa1692 --- /dev/null +++ b/metal/src/engine/stubs_023.cpp @@ -0,0 +1,15 @@ +// metal/src/engine/stubs_023.cpp - the two research hooks of the shared Verifier::record_window that only the CUDA / HIP backends implement +// (src/kernels/cuda/verify_kernels.cu): hc_mean_streams (STRATA_TAP_FILE) and route_marginal_stats (STRATA_ROUTE_STATS). Verifier::record_window +// does not run on Metal (init hands over to the Metal window, metal/src/engine/window.cpp), so neither is reached; if one ever is, it stops +// the engine with its name instead of continuing on outputs nobody wrote. They exist so the shared host file links. + +#include + +#include "strata/kernels/verify_kernels.hpp" + +namespace strata::metal_engine { void missing(const char* name); } + +namespace strata::kernels { +void hc_mean_streams(const float*, float*, int64_t, int, void*) { strata::metal_engine::missing("strata::kernels::hc_mean_streams"); } +void route_marginal_stats(const int32_t*, int, int, unsigned long long*, void*) { strata::metal_engine::missing("strata::kernels::route_marginal_stats"); } +} // namespace strata::kernels