---
id: pr-flash-attention-2369
repo: Dao-AILab/flash-attention
pr: 2369
title: '[Cute, Testing] Fix aot + tvm-ffi EnvStream related parameter mismatch'
author: Alkaid-Benetnash
date: '2026-03-18'
url: https://github.com/Dao-AILab/flash-attention/pull/2369
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- attention kernel
- cuda kernel
- cutlass
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 3e40b8e45ecd7b8550da6bc624453d371391752a
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/flash_bwd.py
- flash_attn/cute/flash_bwd_postprocess.py
- flash_attn/cute/flash_bwd_preprocess.py
- flash_attn/cute/flash_bwd_sm100.py
- flash_attn/cute/flash_bwd_sm90.py
- flash_attn/cute/flash_fwd.py
- flash_attn/cute/flash_fwd_combine.py
- flash_attn/cute/flash_fwd_sm100.py
- flash_attn/cute/flash_fwd_sm90.py
- flash_attn/cute/interface.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2369
head_ref_oid: 70ae7fc141c5ee765f0489a51349286517f3f63c
---
# [Cute, Testing] Fix aot + tvm-ffi EnvStream related parameter mismatch

- Repository: `Dao-AILab/flash-attention`
- PR: [2369](https://github.com/Dao-AILab/flash-attention/pull/2369)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `flash_attn/cute/flash_bwd.py`
- `flash_attn/cute/flash_bwd_postprocess.py`
- `flash_attn/cute/flash_bwd_preprocess.py`
- `flash_attn/cute/flash_bwd_sm100.py`
- `flash_attn/cute/flash_bwd_sm90.py`
- `flash_attn/cute/flash_fwd.py`
- `flash_attn/cute/flash_fwd_combine.py`
- `flash_attn/cute/flash_fwd_sm100.py`
- `flash_attn/cute/flash_fwd_sm90.py`
- `flash_attn/cute/interface.py`

## Evidence Bundle

`evidence/pull-bundles/flash-attention/gh-2369`
