mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
The final pass found that the Metal q4_lite build of the freeze hash fails to link: `Undefined symbols: strata::kernels::native_router_topk_logits(...) referenced from strata::core::moe_route`. Q4-OPT's fused router kernel exists in kernels/cuda/native_router.cu only, is called from the shared core/layer.cpp (+ mtp.cpp, verify.cpp) behind STRATA_Q4_OPT, and engine/cmake/strata_geometry.cmake defined STRATA_Q4_OPT for every q4_lite geometry that was not HIP, Metal and SYCL included. The define now needs `STRATA_ENABLE_CUDA` (and still not HIP): a CUDA q4_lite build is unchanged (the -D cache variable is visible where the file is included, at CMakeLists.txt line 14), every other q4_lite build (Metal, SYCL, CPU-only, HIP) compiles the text it had before the port. One line of cmake and its comment.