---
id: pr-flash-attention-2304
repo: Dao-AILab/flash-attention
pr: 2304
title: '[Cute][Testing] Add persistent compile cache for cutedsl AOT compilation'
author: Alkaid-Benetnash
date: '2026-03-04'
url: https://github.com/Dao-AILab/flash-attention/pull/2304
source_category: upstream-code
architectures:
- sm100
tags:
- attention kernel
- cutlass
techniques:
- cache-policy
- persistent-kernels
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 9a25eba569317708ae295e396aaac0050b28e52b
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/cache_utils.py
- flash_attn/cute/interface.py
- flash_attn/cute/pyproject.toml
- tests/cute/test_mask_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2304
head_ref_oid: 825e34047b15f5901b296a0a30e10842f91dda76
---
# [Cute][Testing] Add persistent compile cache for cutedsl AOT compilation

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

## Evidence Bundle

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