---
id: pr-flash-attention-1203
repo: Dao-AILab/flash-attention
pr: 1203
title: '[AMD] Triton Backend for ROCm'
author: micmelesse
date: '2024-12-06'
url: https://github.com/Dao-AILab/flash-attention/pull/1203
source_category: upstream-code
architectures:
- sm100
tags:
- triton kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
- triton
captured_at: '2026-05-16'
status: merged
merge_sha: b518517cb8efca4243f7d381d614704f6584fac1
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- README.md
- flash_attn/flash_attn_interface.py
- flash_attn/flash_attn_triton_amd/README.md
- flash_attn/flash_attn_triton_amd/__init__.py
- flash_attn/flash_attn_triton_amd/bench.py
- flash_attn/flash_attn_triton_amd/bwd_prefill.py
- flash_attn/flash_attn_triton_amd/bwd_ref.py
- flash_attn/flash_attn_triton_amd/fwd_decode.py
- flash_attn/flash_attn_triton_amd/fwd_prefill.py
- flash_attn/flash_attn_triton_amd/fwd_ref.py
- flash_attn/flash_attn_triton_amd/interface_fa.py
- flash_attn/flash_attn_triton_amd/interface_torch.py
- flash_attn/flash_attn_triton_amd/test.py
- flash_attn/flash_attn_triton_amd/utils.py
- setup.py
- tests/test_flash_attn_triton_amd.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-1203
head_ref_oid: 21cf529326a1dc3fac514941230cfa476ee8a4a1
---
# [AMD] Triton Backend for ROCm

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

- `README.md`
- `flash_attn/flash_attn_interface.py`
- `flash_attn/flash_attn_triton_amd/README.md`
- `flash_attn/flash_attn_triton_amd/__init__.py`
- `flash_attn/flash_attn_triton_amd/bench.py`
- `flash_attn/flash_attn_triton_amd/bwd_prefill.py`
- `flash_attn/flash_attn_triton_amd/bwd_ref.py`
- `flash_attn/flash_attn_triton_amd/fwd_decode.py`
- `flash_attn/flash_attn_triton_amd/fwd_prefill.py`
- `flash_attn/flash_attn_triton_amd/fwd_ref.py`
- `flash_attn/flash_attn_triton_amd/interface_fa.py`
- `flash_attn/flash_attn_triton_amd/interface_torch.py`
- `flash_attn/flash_attn_triton_amd/test.py`
- `flash_attn/flash_attn_triton_amd/utils.py`
- `setup.py`
- `tests/test_flash_attn_triton_amd.py`

## Evidence Bundle

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