---
id: pr-flashinfer-1307
repo: flashinfer-ai/flashinfer
pr: 1307
title: Fix the bug of the kernel-selection heuristic in trtllm-gen
author: PerkzZheng
date: '2025-07-23'
url: https://github.com/flashinfer-ai/flashinfer/pull/1307
source_category: upstream-code
architectures:
- sm100
tags:
- flash-attention
techniques: []
hardware_features: []
kernel_types:
- flash-attention
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 18fd91a74ad6f8bfd648178e4e04a5d23dc5272d
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/trtllm/fmha/fmhaKernels.cuh
head_ref_oid: 2928905755845ff6e9626625555a2636facfa8a1
artifact_dir: evidence/pull-bundles/flashinfer/gh-1307
---
# Fix the bug of the kernel-selection heuristic in trtllm-gen

- Repository: `flashinfer-ai/flashinfer`
- PR: [1307](https://github.com/flashinfer-ai/flashinfer/pull/1307)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `include/flashinfer/trtllm/fmha/fmhaKernels.cuh`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-1307`
