---
id: pr-flash-attention-1233
repo: Dao-AILab/flash-attention
pr: 1233
title: Add local attention in Hopper FAv3
author: ipiszy
date: '2024-09-20'
url: https://github.com/Dao-AILab/flash-attention/pull/1233
source_category: upstream-code
architectures:
- sm90
tags:
- arch_pipeline
- attention_kv
- benchmark_test
- fp8
- hopper
techniques:
- async-copy
- pipeline-stages
- tile-scheduling
hardware_features:
- fp8
- hopper
- tma
kernel_types:
- attention
- runtime
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 9cafd4ae140b52dc2c95be1a1c6aeb24925a883d
inclusion_reason: 'Extract the architecture assumption first: SM target, TMA/WGMMA/tcgen path, cluster use, and pipeline stages.'
changed_paths:
- hopper/flash.h
- hopper/flash_api.cpp
- hopper/flash_attn_interface.py
- hopper/flash_bwd_kernel.h
- hopper/flash_bwd_launch_template.h
- hopper/flash_fwd_kernel.h
- hopper/flash_fwd_launch_template.h
- hopper/mainloop_bwd_sm90_tma_gmma_ws.hpp
- hopper/mainloop_fwd_sm90_tma_gmma_ws.hpp
- hopper/setup.py
- hopper/test_flash_attn.py
- hopper/tile_scheduler.hpp
artifact_dir: evidence/pull-bundles/flash-attention/gh-1233
head_ref_oid: 1c9717d699c720ce62b662b376ce224988609fbd
---
# Add local attention in Hopper FAv3

- Repository: `Dao-AILab/flash-attention`
- PR: [1233](https://github.com/Dao-AILab/flash-attention/pull/1233)
- Decision: `Extract the architecture assumption first: SM target, TMA/WGMMA/tcgen path, cluster use, and pipeline stages.`
- Reason: Extract the architecture assumption first: SM target, TMA/WGMMA/tcgen path, cluster use, and pipeline stages.

## Changed Paths

- `hopper/flash.h`
- `hopper/flash_api.cpp`
- `hopper/flash_attn_interface.py`
- `hopper/flash_bwd_kernel.h`
- `hopper/flash_bwd_launch_template.h`
- `hopper/flash_fwd_kernel.h`
- `hopper/flash_fwd_launch_template.h`
- `hopper/mainloop_bwd_sm90_tma_gmma_ws.hpp`
- `hopper/mainloop_fwd_sm90_tma_gmma_ws.hpp`
- `hopper/setup.py`
- `hopper/test_flash_attn.py`
- `hopper/tile_scheduler.hpp`

## Evidence Bundle

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