---
id: pr-tilelang-1416
repo: tile-ai/tilelang
pr: 1416
title: '[CUDA] Add read-only parameter annotation for CUDA codegen'
author: LeiWang1999
date: '2025-12-13'
url: https://github.com/tile-ai/tilelang/pull/1416
source_category: upstream-code
architectures:
- sm90
tags:
- sm90
techniques: []
hardware_features:
- hopper
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 00dd738835bbd46f5da7a4df35b66578ba62ee55
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/flash_attention/example_gqa_bwd_tma_reduce_varlen.py
- pyproject.toml
- requirements-dev.txt
- requirements.txt
- src/target/codegen_cuda.cc
- src/tl_templates/cuda/copy.h
- src/tl_templates/cuda/copy_sm90.h
- src/tl_templates/hip/copy.h
- src/transform/annotate_read_only_params.cc
- testing/python/transform/test_readonly_param_const_codegen.py
- tilelang/engine/phase.py
- tilelang/transform/__init__.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1416
head_ref_oid: 218ea83d39e8d36c974a3e5b8a6c679bf4cb4eb1
---
# [CUDA] Add read-only parameter annotation for CUDA codegen

- Repository: `tile-ai/tilelang`
- PR: [1416](https://github.com/tile-ai/tilelang/pull/1416)
- 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

- `examples/flash_attention/example_gqa_bwd_tma_reduce_varlen.py`
- `pyproject.toml`
- `requirements-dev.txt`
- `requirements.txt`
- `src/target/codegen_cuda.cc`
- `src/tl_templates/cuda/copy.h`
- `src/tl_templates/cuda/copy_sm90.h`
- `src/tl_templates/hip/copy.h`
- `src/transform/annotate_read_only_params.cc`
- `testing/python/transform/test_readonly_param_const_codegen.py`
- `tilelang/engine/phase.py`
- `tilelang/transform/__init__.py`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-1416`
