okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-mac-kv-stub: Metal stub for kv_unstage_to_host so the Mac engine links againb59ee3ffe

main
1.1 KiB19 linesraw
1// metal/src/engine/stubs_kv_dma.cpp - the K/V host-copy DMA of the CUDA / HIP prompt path (include/strata/kernels/kv_stream.hpp,
2// src/kernels/cuda/kv_stream.cu).  Prefill::run_impl and Prefill::lm_run (src/prefill/prefill.cpp) call it after the K/V append when the
3// append wrote only the staging pool, but neither runs on Metal: Prefill::run reads the prompt through the decode window
4// (metal/src/engine/window.cpp, see stubs_df2.cpp), and the K/V append before the call is a stub too (stubs.cpp).  It exists so the
5// shared host files link.
6//   kv_unstage_to_host   the staging pool's blocks into the host copy, by DMA; stops the engine with its name, like stubs.cpp, if it
7//                        is ever reached.
8
9#include <cstdint>
10
11#include "strata/kernels/kv_stream.hpp"
12
13namespace strata::metal_engine { void missing(const char* name); }
14
15namespace strata::kernels {
16void kv_unstage_to_host(const QsaAttnPools&, const KvHostPools&, int, int64_t, int64_t, const QsaShapes&, void*) {
17    strata::metal_engine::missing("strata::kernels::kv_unstage_to_host");
18}
19}  // namespace strata::kernels