---
id: pr-flash-attention-1924
repo: Dao-AILab/flash-attention
pr: 1924
title: Remove self refs in softmax for-loop
author: kevin-tong-augment
date: '2025-10-13'
url: https://github.com/Dao-AILab/flash-attention/pull/1924
source_category: upstream-code
architectures:
- sm100
tags:
- online-softmax
techniques:
- async-copy
hardware_features:
- tma
kernel_types:
- attention
- softmax
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: b4e589699c5f2d6070e9517504b635ea3b3c2cf9
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/softmax.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-1924
head_ref_oid: f78e87f62078bd7c6cdb28126fb6a04c68d1bdb0
---
# Remove self refs in softmax for-loop

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

## Evidence Bundle

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