---
id: pr-tilelang-2164
repo: tile-ai/tilelang
pr: 2164
title: '[Refactor] Move backend stubs out of codegen'
author: LeiWang1999
date: '2026-05-07'
url: https://github.com/tile-ai/tilelang/pull/2164
source_category: upstream-code
architectures:
- sm100
tags:
- cuda kernel
techniques: []
hardware_features: []
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 0fdd0f8a6071c4d01b36fc452a632ebaeec8021f
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- docs/runtime_internals/stubs.md
- src/backend/cuda/CMakeLists.txt
- src/backend/cuda/stubs/cuda.cc
- src/backend/cuda/stubs/cuda.h
- src/backend/cuda/stubs/cudart.cc
- src/backend/cuda/stubs/dynlib.h
- src/backend/cuda/stubs/nvrtc.cc
- src/backend/cuda/stubs/vendor/cuda.h
- src/backend/rocm/CMakeLists.txt
- src/backend/rocm/stubs/hip.cc
- src/backend/rocm/stubs/hip.h
- src/backend/rocm/stubs/hiprtc.cc
- src/backend/rocm/stubs/vendor/hip_runtime.h
- src/op/builtin.cc
- src/op/utils.h
- src/runtime/runtime.cc
- testing/python/amd/test_tilelang_hip_codegen.py
artifact_dir: evidence/pull-bundles/tilelang/gh-2164
head_ref_oid: eed61f5fb42ac2fce4301dc75c52ec483bcab5fd
---
# [Refactor] Move backend stubs out of codegen

- Repository: `tile-ai/tilelang`
- PR: [2164](https://github.com/tile-ai/tilelang/pull/2164)
- 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/runtime_internals/stubs.md`
- `src/backend/cuda/CMakeLists.txt`
- `src/backend/cuda/stubs/cuda.cc`
- `src/backend/cuda/stubs/cuda.h`
- `src/backend/cuda/stubs/cudart.cc`
- `src/backend/cuda/stubs/dynlib.h`
- `src/backend/cuda/stubs/nvrtc.cc`
- `src/backend/cuda/stubs/vendor/cuda.h`
- `src/backend/rocm/CMakeLists.txt`
- `src/backend/rocm/stubs/hip.cc`
- `src/backend/rocm/stubs/hip.h`
- `src/backend/rocm/stubs/hiprtc.cc`
- `src/backend/rocm/stubs/vendor/hip_runtime.h`
- `src/op/builtin.cc`
- `src/op/utils.h`
- `src/runtime/runtime.cc`
- `testing/python/amd/test_tilelang_hip_codegen.py`

## Evidence Bundle

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