ling32 HIP: volta_extra_smem() is 0 on AMD (the Turing/Volta merge declared it inside the CUDA-only block, ling32_moe_tc.cu calls it from host code)

gfx1201 build error 'use of undeclared identifier volta_extra_smem' at ling32_moe_tc.cu:37 (found by L32-HIP on 81e5e72729).  The CUDA path is
unchanged: the stub is the #else of the existing #if !defined(STRATA_USE_HIP) block in ling32_dev.cuh.
This commit is contained in:
Niko1221 committed 2026-12-02 23:43:21 +01:00
1 parent 81e5e72729
commit 217f218bb0
1 file changed
+2
+2
View File
@@ -391,6 +391,8 @@ __device__ __forceinline__ void volta_group_step(const __half* Wrow0, const __ha
__syncwarp();
}
#endif
#else
inline size_t volta_extra_smem() { return 0; } // AMD: no sm_70 accumulator tile (the helper is called by the host-side shared-memory sizing of the tensor-core MoE kernels)
#endif
// 8 weights (two words of 4 bytes, see load_w8) -> 8 exact integers as fp16