From 8549cce11b878d2fbf814d5e27bcc5e626890e70 Mon Sep 17 00:00:00 2001 From: yiheng Date: Thu, 13 Aug 2026 00:15:41 +0800 Subject: [PATCH] [BugFix] Fix race in c128 prefill plan kernel on ragged extend (#32467) Signed-off-by: EanWang211123 --- python/sglang/kernels/jit/csrc/deepseek_v4/c_plan.cuh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/sglang/kernels/jit/csrc/deepseek_v4/c_plan.cuh b/python/sglang/kernels/jit/csrc/deepseek_v4/c_plan.cuh index 3675a6e39..7e7b1005e 100644 --- a/python/sglang/kernels/jit/csrc/deepseek_v4/c_plan.cuh +++ b/python/sglang/kernels/jit/csrc/deepseek_v4/c_plan.cuh @@ -154,11 +154,6 @@ __global__ __launch_bounds__(1024, 1) // counter_c = 0; counter_w = 0; } - if (tx < kNumWarps) { - warp_max[tx] = 0; - warp_min[tx] = 0xFFFFFFFFu; - } - // === Stage B: min/max(extend_len) for MTP-uniform detection === // For min, treat threads outside `batch_size` as +inf so they don't pull the min down. const uint32_t e_for_max = static_cast(extend_len);