---
id: pr-flashinfer-2857
repo: flashinfer-ai/flashinfer
pr: 2857
title: '[fix] bugfix 541: Make single_prefill/decode compatible with torch.compile CUDA graphs'
author: qsang-nv
date: '2026-04-10'
url: https://github.com/flashinfer-ai/flashinfer/pull/2857
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 9dc802c471e318c0ef8866730b13f4b75bea8124
inclusion_reason: defer
changed_paths:
- flashinfer/decode.py
- flashinfer/prefill.py
- flashinfer/utils.py
- tests/attention/test_batch_decode_kernels.py
- tests/attention/test_batch_prefill_kernels.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2857
head_ref_oid: a7b6cd2abf37018fd2d1670a56a385ddf251f323
---
# [fix] bugfix 541: Make single_prefill/decode compatible with torch.compile CUDA graphs

- Repository: `flashinfer-ai/flashinfer`
- PR: [2857](https://github.com/flashinfer-ai/flashinfer/pull/2857)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `flashinfer/utils.py`
- `tests/attention/test_batch_decode_kernels.py`
- `tests/attention/test_batch_prefill_kernels.py`

## Evidence Bundle

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