---
id: pr-flash-attention-1610
repo: Dao-AILab/flash-attention
pr: 1610
title: '[AMD] Triton Backend for ROCm #2'
author: micmelesse
date: '2025-04-24'
url: https://github.com/Dao-AILab/flash-attention/pull/1610
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- triton kernel
techniques: []
hardware_features:
- fp8
kernel_types:
- attention
languages:
- cuda-cpp
- triton
captured_at: '2026-05-16'
status: merged
merge_sha: 35e5f00fc4b4ead081171601442bebd363d0fa52
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- README.md
- flash_attn/flash_attn_triton_amd/Dockerfile
- flash_attn/flash_attn_triton_amd/README.md
- flash_attn/flash_attn_triton_amd/bench.py
- flash_attn/flash_attn_triton_amd/bwd_prefill.py
- flash_attn/flash_attn_triton_amd/bwd_prefill_fused.py
- flash_attn/flash_attn_triton_amd/bwd_prefill_onekernel.py
- flash_attn/flash_attn_triton_amd/bwd_prefill_split.py
- flash_attn/flash_attn_triton_amd/bwd_ref.py
- flash_attn/flash_attn_triton_amd/fp8.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/train.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-1610
head_ref_oid: bb502c6d8afc7c323bcd8bc95ad704950a2e7d09
---
# [AMD] Triton Backend for ROCm #2

- Repository: `Dao-AILab/flash-attention`
- PR: [1610](https://github.com/Dao-AILab/flash-attention/pull/1610)
- 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_triton_amd/Dockerfile`
- `flash_attn/flash_attn_triton_amd/README.md`
- `flash_attn/flash_attn_triton_amd/bench.py`
- `flash_attn/flash_attn_triton_amd/bwd_prefill.py`
- `flash_attn/flash_attn_triton_amd/bwd_prefill_fused.py`
- `flash_attn/flash_attn_triton_amd/bwd_prefill_onekernel.py`
- `flash_attn/flash_attn_triton_amd/bwd_prefill_split.py`
- `flash_attn/flash_attn_triton_amd/bwd_ref.py`
- `flash_attn/flash_attn_triton_amd/fp8.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/train.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-1610`
