---
id: pr-tilelang-1514
repo: tile-ai/tilelang
pr: 1514
title: '[Cleanup] Remove unnecessary macros in tilelang examples'
author: Rachmanino
date: '2025-12-24'
url: https://github.com/tile-ai/tilelang/pull/1514
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- attention kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 42697c00e60c31746408bf9a93138df543cfb26b
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/attention_sink/example_gqa_sink_fwd_bhsd_wgmma_pipelined.py
- examples/attention_sink/example_mha_sink_fwd_bhsd.py
- examples/attention_sink/example_mha_sink_fwd_bhsd_wgmma_pipelined.py
- examples/blocksparse_attention/example_tilelang_block_sparse_attn.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_paged.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_mask.py
- examples/deepseek_mla/amd/benchmark_mla_decode_amd_tilelang.py
- examples/deepseek_mla/example_mla_decode.py
- examples/deepseek_mla/example_mla_decode_paged.py
- examples/deepseek_mla/example_mla_decode_ws.py
- examples/flash_attention/example_gqa_fwd_bshd.py
- examples/flash_attention/example_gqa_fwd_bshd_wgmma_pipelined.py
- examples/flash_attention/example_mha_fwd_bhsd.py
- examples/flash_attention/example_mha_fwd_bhsd_wgmma_pipelined.py
- examples/flash_attention/example_mha_fwd_bshd.py
- examples/flash_attention/example_mha_fwd_bshd_wgmma_pipelined.py
- examples/flash_decoding/example_gqa_decode.py
- examples/flash_decoding/example_gqa_decode_varlen_logits.py
- examples/flash_decoding/example_gqa_decode_varlen_logits_paged.py
- examples/flash_decoding/example_mha_inference.py
- examples/gemm_streamk/example_tilelang_gemm_streamk.py
- examples/seer_attention/block_sparse_attn_tilelang.py
- examples/warp_specialize/example_warp_specialize_flashmla.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1514
head_ref_oid: 5bcb9cbcc6798b66fb362f7635c65d89decef6f5
---
# [Cleanup] Remove unnecessary macros in tilelang examples

- Repository: `tile-ai/tilelang`
- PR: [1514](https://github.com/tile-ai/tilelang/pull/1514)
- 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/attention_sink/example_gqa_sink_fwd_bhsd_wgmma_pipelined.py`
- `examples/attention_sink/example_mha_sink_fwd_bhsd.py`
- `examples/attention_sink/example_mha_sink_fwd_bhsd_wgmma_pipelined.py`
- `examples/blocksparse_attention/example_tilelang_block_sparse_attn.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_paged.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_mask.py`
- `examples/deepseek_mla/amd/benchmark_mla_decode_amd_tilelang.py`
- `examples/deepseek_mla/example_mla_decode.py`
- `examples/deepseek_mla/example_mla_decode_paged.py`
- `examples/deepseek_mla/example_mla_decode_ws.py`
- `examples/flash_attention/example_gqa_fwd_bshd.py`
- `examples/flash_attention/example_gqa_fwd_bshd_wgmma_pipelined.py`
- `examples/flash_attention/example_mha_fwd_bhsd.py`
- `examples/flash_attention/example_mha_fwd_bhsd_wgmma_pipelined.py`
- `examples/flash_attention/example_mha_fwd_bshd.py`
- `examples/flash_attention/example_mha_fwd_bshd_wgmma_pipelined.py`
- `examples/flash_decoding/example_gqa_decode.py`
- `examples/flash_decoding/example_gqa_decode_varlen_logits.py`
- `examples/flash_decoding/example_gqa_decode_varlen_logits_paged.py`
- `examples/flash_decoding/example_mha_inference.py`
- `examples/gemm_streamk/example_tilelang_gemm_streamk.py`
- `examples/seer_attention/block_sparse_attn_tilelang.py`
- `examples/warp_specialize/example_warp_specialize_flashmla.py`

## Evidence Bundle

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