okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
ad33b8074
main
1// src/prefill/moe_fused_stub.cpp (SYCL port) - upstream's fused int8 prompt kernels (moe_fused.cu, moe_fused_iq.cu, #136) 2// belong to its MMQ library, which this build does not have (the prompt path's MMQ plan is empty here, so prefill.cpp 3// never takes the fused branch). These are the "not built" answers, so the prompt path links and keeps its own path. 4#include "strata/prefill/moe_fused.hpp" 5#include "strata/prefill/moe_fused_iq.hpp" 6 7#include <cstdio> 8#include <cstdlib> 9 10namespace strata::prefill::fused { 11 12namespace { 13[[noreturn ]]void unreachable (const char * what ) { 14 std::fprintf (stderr ,"prefill: %s called in a build without the fused kernels\n" ,what ); 15 std::abort (); 16} 17}// namespace 18 19bool built () {return false; } 20bool available () {return false; } 21bool enabled () {return false; } 22bool requested () {return false; } 23size_t act_bytes (int64_t ,int64_t ) {return 0 ; } 24size_t group_bytes (int64_t ,int ) {return 0 ; } 25void quantize_act (const float * ,int64_t ,int64_t ,void * ,void * ) {unreachable ("fused::quantize_act" ); } 26void group (const int32_t * ,int64_t ,int ,int ,void * ,int32_t * ,int32_t * ,void * ) {unreachable ("fused::group" ); } 27void experts (const Batch & ,int ,int64_t ,const void * ,const void * ,const int32_t * ,void * ,float * ,void * ) { 28unreachable ("fused::experts" ); 29} 30bool native_supported (int ,int ) {return false; } 31void quantize_act_native (const float * ,int64_t ,int64_t ,void * ,void * ) {unreachable ("fused::quantize_act_native" ); } 32void experts_native (const Batch & ,const NativeGeom & ,int ,int64_t ,const void * ,const void * ,const int32_t * ,void * ,float * , 33void * ) { 34unreachable ("fused::experts_native" ); 35} 36 37}// namespace strata::prefill::fused