---
id: pr-tilelang-1757
repo: tile-ai/tilelang
pr: 1757
title: '[Refactor] Unify the usage of cast-related operators'
author: SiriusNEO
date: '2026-02-02'
url: https://github.com/tile-ai/tilelang/pull/1757
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: 378a8f25739c783b959ea3a3cf9b537bcc6fa23e
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- docs/deeplearning_operators/gemv.md
- examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_decode.py
- examples/deepseek_v32/inference/kernel.py
- examples/deepseek_v32/topk_selector.py
- examples/dequantize_gemm/example_dequant_gemv_fp16xint4.py
- examples/flash_attention/example_gqa_bwd_tma_reduce.py
- examples/flash_attention/example_gqa_bwd_tma_reduce_varlen.py
- examples/gemv/example_gemv.py
- testing/python/kernel/test_tilelang_kernel_fp8_gemv_simt.py
- testing/python/kernel/test_tilelang_kernel_gemv_simt.py
- testing/python/language/test_tilelang_language_ldg.py
- testing/python/language/test_tilelang_language_select.py
- testing/python/language/test_tilelang_language_stg.py
- testing/python/transform/test_tilelang_transform_decouple_type_cast.py
- testing/python/transform/test_tilelang_transform_thread_sync.py
- tilelang/intrinsics/tcgen05_macro_generator.py
- tilelang/language/tir/ir.py
- tilelang/language/tir/ir.pyi
- tilelang/language/tir/op.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1757
head_ref_oid: 0b192033a789c2eca87465f5a71706b8b97f16c9
---
# [Refactor] Unify the usage of cast-related operators

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

- `docs/deeplearning_operators/gemv.md`
- `examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_decode.py`
- `examples/deepseek_v32/inference/kernel.py`
- `examples/deepseek_v32/topk_selector.py`
- `examples/dequantize_gemm/example_dequant_gemv_fp16xint4.py`
- `examples/flash_attention/example_gqa_bwd_tma_reduce.py`
- `examples/flash_attention/example_gqa_bwd_tma_reduce_varlen.py`
- `examples/gemv/example_gemv.py`
- `testing/python/kernel/test_tilelang_kernel_fp8_gemv_simt.py`
- `testing/python/kernel/test_tilelang_kernel_gemv_simt.py`
- `testing/python/language/test_tilelang_language_ldg.py`
- `testing/python/language/test_tilelang_language_select.py`
- `testing/python/language/test_tilelang_language_stg.py`
- `testing/python/transform/test_tilelang_transform_decouple_type_cast.py`
- `testing/python/transform/test_tilelang_transform_thread_sync.py`
- `tilelang/intrinsics/tcgen05_macro_generator.py`
- `tilelang/language/tir/ir.py`
- `tilelang/language/tir/ir.pyi`
- `tilelang/language/tir/op.py`

## Evidence Bundle

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