---
id: pr-flash-attention-1983
repo: Dao-AILab/flash-attention
pr: 1983
title: '[CuTe DSL] Block sparsity computation kernel'
author: reubenconducts
date: '2025-11-12'
url: https://github.com/Dao-AILab/flash-attention/pull/1983
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 16d78bb2e32fc805238b4eddc7085aa79c941ffe
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- benchmarks/cute/benchmark_block_sparsity.py
- benchmarks/cute/benchmark_mask_mod.py
- flash_attn/cute/compute_block_sparsity.py
- flash_attn/cute/interface.py
- flash_attn/cute/mask_definitions.py
- tests/cute/test_block_sparsity.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-1983
head_ref_oid: a0067fdca674969569bd5b9e95d454710ac46d3b
---
# [CuTe DSL] Block sparsity computation kernel

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

- `benchmarks/cute/benchmark_block_sparsity.py`
- `benchmarks/cute/benchmark_mask_mod.py`
- `flash_attn/cute/compute_block_sparsity.py`
- `flash_attn/cute/interface.py`
- `flash_attn/cute/mask_definitions.py`
- `tests/cute/test_block_sparsity.py`

## Evidence Bundle

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