---
id: pr-flash-attention-2177
repo: Dao-AILab/flash-attention
pr: 2177
title: '[Cute][Flex] add back in contig'
author: drisspg
date: '2026-01-15'
url: https://github.com/Dao-AILab/flash-attention/pull/2177
source_category: upstream-code
architectures:
- sm100
tags:
- 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: 506441a3fc7923b6d009808ce8f44a2735226b6e
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/block_sparsity.py
- flash_attn/cute/cute_dsl_utils.py
- flash_attn/cute/interface.py
- tests/cute/test_mask_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2177
head_ref_oid: d7341f0cd19f651b6b867d1a782dff0ea08b5ccd
---
# [Cute][Flex] add back in contig

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

## Evidence Bundle

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