---
id: pr-flash-attention-2145
repo: Dao-AILab/flash-attention
pr: 2145
title: '[CUTE][SM90]Enable pack-gqa with broadcasted maskmods'
author: drisspg
date: '2026-01-10'
url: https://github.com/Dao-AILab/flash-attention/pull/2145
source_category: upstream-code
architectures:
- sm90
tags:
- arch_pipeline
- attention_kv
- benchmark_test
- compiler_runtime
- sm90
techniques:
- pipeline-stages
hardware_features:
- hopper
kernel_types:
- attention
- compiler
- runtime
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 8eff546d05191f090f8f43115881b32d509aae3c
inclusion_reason: 'Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.'
changed_paths:
- flash_attn/cute/block_sparse_utils.py
- flash_attn/cute/flash_fwd.py
- flash_attn/cute/interface.py
- tests/cute/test_mask_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2145
head_ref_oid: 6ce50439a34ce58d422e0463984ebe6ece5d2eec
---
# [CUTE][SM90]Enable pack-gqa with broadcasted maskmods

- Repository: `Dao-AILab/flash-attention`
- PR: [2145](https://github.com/Dao-AILab/flash-attention/pull/2145)
- Decision: `Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.`
- Reason: Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.

## Changed Paths

- `flash_attn/cute/block_sparse_utils.py`
- `flash_attn/cute/flash_fwd.py`
- `flash_attn/cute/interface.py`
- `tests/cute/test_mask_mod.py`

## Evidence Bundle

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