---
id: pr-flash-attention-2506
repo: Dao-AILab/flash-attention
pr: 2506
title: '[CuTe, Flex] simplify blocksparse interface in flash_attn_func'
author: reubenconducts
date: '2026-04-27'
url: https://github.com/Dao-AILab/flash-attention/pull/2506
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: 6b52632d8afb3a88323b2f2e6bde2015e08261cd
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/interface.py
- tests/cute/test_mask_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2506
head_ref_oid: 557afaa65b1a3c5b9d7c1584665e7eddbc5be325
---
# [CuTe, Flex] simplify blocksparse interface in flash_attn_func

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

## Evidence Bundle

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