---
id: pr-tilelang-2075
repo: tile-ai/tilelang
pr: 2075
title: '[Refactor] Phaseout legacy util `map_torch_type` with `T.dtype.as_torch`'
author: LeiWang1999
date: '2026-04-21'
url: https://github.com/tile-ai/tilelang/pull/2075
source_category: upstream-code
architectures:
- sm100
tags:
- cuda kernel
- fp8
- gemm
- matmul
- sm100
techniques: []
hardware_features:
- blackwell
- fp8
kernel_types:
- gemm
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 9c95a42dfb804faaa0f8c895c76f7467294a9f7b
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/deepseek_deepgemm/example_deepgemm_fp8_2xAcc.py
- examples/gemm_fp8/example_tilelang_gemm_fp8_intrinsic.py
- examples/gemm_fp8/example_tilelang_gemm_fp8_sm100.py
- testing/python/jit/test_tilelang_jit_cutedsl.py
- testing/python/jit/test_tilelang_jit_gemm_cython.py
- testing/python/jit/test_tilelang_jit_nullptr.py
- testing/python/jit/test_tilelang_jit_nvrtc.py
- testing/python/jit/test_tilelang_jit_tvm_ffi.py
- testing/python/kernel/test_tilelang_kernel_bf16_gemm_mma.py
- testing/python/kernel/test_tilelang_kernel_fp8_gemm.py
- testing/python/kernel/test_tilelang_kernel_fp8_gemm_mma.py
- testing/python/kernel/test_tilelang_kernel_fp8_gemv_simt.py
- testing/python/kernel/test_tilelang_kernel_gemm_mma_intrinsic.py
- testing/python/kernel/test_tilelang_kernel_gemv_simt.py
- testing/python/language/test_tilelang_language_clear.py
- testing/python/language/test_tilelang_language_ptr.py
- testing/python/tilelibrary/test_tilelang_tilelibrary_gemm_sp.py
- testing/python/tilelibrary/test_tilelang_tilelibrary_gemm_sp_v2.py
- tilelang/jit/adapter/cython/adapter.py
- tilelang/jit/adapter/cython/cython_wrapper.pyx
- tilelang/language/dtypes.py
- tilelang/utils/__init__.py
- tilelang/utils/tensor.py
artifact_dir: evidence/pull-bundles/tilelang/gh-2075
head_ref_oid: 5b6a6baf2b1347c7eeacbc989341de61ebcad7cb
---
# [Refactor] Phaseout legacy util `map_torch_type` with `T.dtype.as_torch`

- Repository: `tile-ai/tilelang`
- PR: [2075](https://github.com/tile-ai/tilelang/pull/2075)
- 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/deepseek_deepgemm/example_deepgemm_fp8_2xAcc.py`
- `examples/gemm_fp8/example_tilelang_gemm_fp8_intrinsic.py`
- `examples/gemm_fp8/example_tilelang_gemm_fp8_sm100.py`
- `testing/python/jit/test_tilelang_jit_cutedsl.py`
- `testing/python/jit/test_tilelang_jit_gemm_cython.py`
- `testing/python/jit/test_tilelang_jit_nullptr.py`
- `testing/python/jit/test_tilelang_jit_nvrtc.py`
- `testing/python/jit/test_tilelang_jit_tvm_ffi.py`
- `testing/python/kernel/test_tilelang_kernel_bf16_gemm_mma.py`
- `testing/python/kernel/test_tilelang_kernel_fp8_gemm.py`
- `testing/python/kernel/test_tilelang_kernel_fp8_gemm_mma.py`
- `testing/python/kernel/test_tilelang_kernel_fp8_gemv_simt.py`
- `testing/python/kernel/test_tilelang_kernel_gemm_mma_intrinsic.py`
- `testing/python/kernel/test_tilelang_kernel_gemv_simt.py`
- `testing/python/language/test_tilelang_language_clear.py`
- `testing/python/language/test_tilelang_language_ptr.py`
- `testing/python/tilelibrary/test_tilelang_tilelibrary_gemm_sp.py`
- `testing/python/tilelibrary/test_tilelang_tilelibrary_gemm_sp_v2.py`
- `tilelang/jit/adapter/cython/adapter.py`
- `tilelang/jit/adapter/cython/cython_wrapper.pyx`
- `tilelang/language/dtypes.py`
- `tilelang/utils/__init__.py`
- `tilelang/utils/tensor.py`

## Evidence Bundle

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