---
id: pr-flash-attention-2042
repo: Dao-AILab/flash-attention
pr: 2042
title: '[CUTE] Enabling TVM-FFI to reduce cpu overhead'
author: drisspg
date: '2025-12-15'
url: https://github.com/Dao-AILab/flash-attention/pull/2042
source_category: upstream-code
architectures:
- sm100
tags:
- cuda kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 179f793bbc62f095338961fc7aef0d421bdbe8e5
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/block_sparsity.py
- flash_attn/cute/interface.py
- flash_attn/cute/pyproject.toml
artifact_dir: evidence/pull-bundles/flash-attention/gh-2042
head_ref_oid: 8ae85ede12f52a6a375ba134f59b8fab75cc0546
---
# [CUTE] Enabling TVM-FFI to reduce cpu overhead

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

## Evidence Bundle

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