---
id: pr-flash-attention-2236
repo: Dao-AILab/flash-attention
pr: 2236
title: '[Cute,Flex,Fwd] Allow vectorized score_mod definitions'
author: reubenconducts
date: '2026-02-11'
url: https://github.com/Dao-AILab/flash-attention/pull/2236
source_category: upstream-code
architectures:
- sm100
- sm90
tags:
- arch_pipeline
- attention_kv
- benchmark_test
- compiler_runtime
- scheduler_autotune
- sm90
- varlen
techniques:
- autotuning
- pipeline-stages
- tile-scheduling
- vectorized-loads
hardware_features:
- blackwell
- hopper
kernel_types:
- attention
- compiler
- runtime
- scheduler
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: c4d8b0630eb81cf88206e0cc9e9bff4e7806d88f
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/cute_dsl_utils.py
- flash_attn/cute/flash_fwd.py
- flash_attn/cute/flash_fwd_sm100.py
- flash_attn/cute/interface.py
- flash_attn/cute/utils.py
- tests/cute/score_mod_definitions.py
- tests/cute/test_score_mod.py
- tests/cute/test_score_mod_varlen.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2236
head_ref_oid: eaa4a49840be1f4ce4903943a825f3ce33c8a673
---
# [Cute,Flex,Fwd] Allow vectorized score_mod definitions

- Repository: `Dao-AILab/flash-attention`
- PR: [2236](https://github.com/Dao-AILab/flash-attention/pull/2236)
- 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/cute_dsl_utils.py`
- `flash_attn/cute/flash_fwd.py`
- `flash_attn/cute/flash_fwd_sm100.py`
- `flash_attn/cute/interface.py`
- `flash_attn/cute/utils.py`
- `tests/cute/score_mod_definitions.py`
- `tests/cute/test_score_mod.py`
- `tests/cute/test_score_mod_varlen.py`

## Evidence Bundle

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