---
id: pr-flash-attention-2271
repo: Dao-AILab/flash-attention
pr: 2271
title: '[cute] Add return_lse'
author: erikwijmans
date: '2026-02-26'
url: https://github.com/Dao-AILab/flash-attention/pull/2271
source_category: upstream-code
architectures:
- sm100
tags:
- cute
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 59635947a020c3a99ce4bd360d4e221b8f3af572
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/interface.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2271
head_ref_oid: 66d4324688cceb46629b357494ae807ac57d0f79
---
# [cute] Add return_lse

- Repository: `Dao-AILab/flash-attention`
- PR: [2271](https://github.com/Dao-AILab/flash-attention/pull/2271)
- 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/interface.py`

## Evidence Bundle

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