---
id: pr-flash-attention-2365
repo: Dao-AILab/flash-attention
pr: 2365
title: '[Sm90] Fix test_mask_mod and bwd block-sparse kwarg mismatch'
author: henrylhtsang
date: '2026-03-17'
url: https://github.com/Dao-AILab/flash-attention/pull/2365
source_category: upstream-code
architectures:
- sm90
tags:
- sm90
- wgmma
techniques: []
hardware_features:
- hopper
- wgmma
kernel_types:
- attention
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: ab0efcb4949cb00b5eb88a79e5fd4cb9d3f48846
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/flash_bwd_sm90.py
- tests/cute/test_mask_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2365
head_ref_oid: a1701cf62eac8810824d7e5ffcf154cdfde8544d
---
# [Sm90] Fix test_mask_mod and bwd block-sparse kwarg mismatch

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

## Evidence Bundle

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