---
id: pr-flash-attention-911
repo: Dao-AILab/flash-attention
pr: 911
title: Fix spurious re-compilations of `rotary_kernel`
author: dfyz
date: '2024-04-05'
url: https://github.com/Dao-AILab/flash-attention/pull/911
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: f692b98d805850983f14deec7a9104583c58b107
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/ops/triton/rotary.py
- tests/test_rotary.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-911
head_ref_oid: 5a3064b7f552e5774280670095e64e475283ce2d
---
# Fix spurious re-compilations of `rotary_kernel`

- Repository: `Dao-AILab/flash-attention`
- PR: [911](https://github.com/Dao-AILab/flash-attention/pull/911)
- 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/ops/triton/rotary.py`
- `tests/test_rotary.py`

## Evidence Bundle

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