---
id: pr-flash-attention-1674
repo: Dao-AILab/flash-attention
pr: 1674
title: '[BE] use more minimal torch headers for hopper/flash_api.cpp'
author: janeyx99
date: '2025-05-22'
url: https://github.com/Dao-AILab/flash-attention/pull/1674
source_category: upstream-code
architectures:
- sm90
tags:
- hopper
techniques: []
hardware_features:
- hopper
kernel_types:
- attention
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 0e79d71175346c7151f49ab6287084a052bc9613
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- hopper/flash_api.cpp
artifact_dir: evidence/pull-bundles/flash-attention/gh-1674
head_ref_oid: 31a7cf6e52e9eeb2f5cda4dad66e017f8985aa64
---
# [BE] use more minimal torch headers for hopper/flash_api.cpp

- Repository: `Dao-AILab/flash-attention`
- PR: [1674](https://github.com/Dao-AILab/flash-attention/pull/1674)
- 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

- `hopper/flash_api.cpp`

## Evidence Bundle

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