From bcef7b7818f47d7c593340aa4e836aca1130bdcb Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 15 Oct 2026 08:53:39 +0200 Subject: [PATCH] moe_fused_iq: #2145's host_astages() also for HIP (the shared launch() calls it; the HIP build of #2145 as submitted did not compile) --- src/prefill/moe_fused_iq.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/prefill/moe_fused_iq.cu b/src/prefill/moe_fused_iq.cu index f87a0808..b9f5c131 100644 --- a/src/prefill/moe_fused_iq.cu +++ b/src/prefill/moe_fused_iq.cu @@ -1187,6 +1187,9 @@ bool d_covered(int t) { ; } +#if defined(__HIPCC__) +int host_astages() { return ASTAGES; } // (#2145 defines it for CUDA above; HIP keeps the one depth) +#endif template void launch(int ww, unsigned grid, const Batch& b, const NativeGeom& g, const Tables& tb, const void* act, const int32_t* src, void* out, float* dm, cudaStream_t s) {