okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
4e1e5f248
main
1// metal/src/engine/stubs_prompt_f16.cpp - two entry points of the CUDA / HIP prompt path that the Metal engine does not implement: 2// the F16 request of the fused expert kernels and the few-row expert plan record. Prefill::run_impl (src/prefill/prefill.cpp) calls 3// them but does not run on Metal (the prompt chunks are metal/src/engine/window.cpp, see stubs_df2.cpp); they exist so the shared host 4// files link. 5// fused::want_dm_f16 asks the fused kernels to write the down rows as FP16 (gfx11): this build has no fused kernels, nothing to ask. 6// fewrows_record STRATA_PF_FEWROWS (research switch, off): the plan record of a few-row expert, written by a CUDA kernel; 7// stops the engine with its name, like stubs.cpp, if it is ever reached. 8 9#include <cstdint> 10 11#include "strata/prefill/kernels.hpp" 12#include "strata/prefill/moe_fused_iq.hpp" 13 14namespace strata::metal_engine {void missing (const char * name ); } 15 16namespace strata::prefill { 17void fewrows_record (void * ,const void * ,int ,int ,void * ) { 18 strata::metal_engine::missing ("strata::prefill::fewrows_record" ); 19} 20namespace fused { 21void want_dm_f16 (bool ) {} 22}// namespace fused 23}// namespace strata::prefill