---
id: pr-vllm-41665
repo: vllm-project/vllm
pr: 41665
title: '[Bugfix] Fix condition to clear persistent topk so that it can be captured regardless'
author: zyongye
date: '2026-05-06'
url: https://github.com/vllm-project/vllm/pull/41665
source_category: upstream-code
architectures:
- sm100
tags:
- CUDA kernel
- benchmark kernel
- csrc kernel
- moe_routing
- scheduler_autotune
- topk
techniques:
- autotuning
- persistent-kernels
- tile-scheduling
hardware_features: []
kernel_types:
- moe
- scheduler
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 80d5e7d103ee181f66389d0e2580841e2a2f1db5
inclusion_reason: Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.
changed_paths:
- csrc/topk.cu
artifact_dir: evidence/pull-bundles/vllm/gh-41665
head_ref_oid: 27c3fc6986b9d941ae9219b8d492706b723269eb
---
# [Bugfix] Fix condition to clear persistent topk so that it can be captured regardless

- Repository: `vllm-project/vllm`
- PR: [41665](https://github.com/vllm-project/vllm/pull/41665)
- Decision: `Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.`
- Reason: Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.

## Changed Paths

- `csrc/topk.cu`

## Evidence Bundle

`evidence/pull-bundles/vllm/gh-41665`
