Fix constexpr issues in prefill debug test

This commit is contained in:
2026-06-03 03:46:29 +00:00
parent d3dc8cf901
commit 09384a637a

View File

@@ -332,7 +332,7 @@ __global__ void prefill_t2_debug_kernel(
// Read PV result for row qr
asm volatile("fence.sc.gpu;" ::: "memory");
__syncthreads();
prefill_read_pv_all_subs<HD, N_SUB>(tb, qr, sOacc, p_rescale);
prefill_read_pv_all_subs<512, 32>(tb, qr, sOacc, p_rescale);
__syncthreads();
// Print first few accumulated values
@@ -378,7 +378,7 @@ int main() {
constexpr int HD = 512;
constexpr int NOPE = 448;
constexpr int ROPE = 64;
constexpr float scale = 1.0f / sqrtf((float)HD);
const float scale = 1.0f / sqrtf((float)HD);
printf("=== Prefill T=2 Debug Test ===\n");
printf("T=%d N=%d HD=%d NOPE=%d ROPE=%d scale=%.6f\n", T, N, HD, NOPE, ROPE, scale);