---
id: pr-tilelang-2037
repo: tile-ai/tilelang
pr: 2037
title: '[Bugfix][Subtype] Fix scalar fp4 store/load codegen for non-packed buffers'
author: kurisu6912
date: '2026-04-14'
url: https://github.com/tile-ai/tilelang/pull/2037
source_category: upstream-code
architectures:
- sm100
tags:
- blackwell
- cuda kernel
- cutlass
- fp4
techniques: []
hardware_features:
- blackwell
- fp4
kernel_types: []
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: f309d8147e15c74e643012652b518a1926d830bc
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/target/codegen_cuda.cc
- src/transform/inject_assumes.cc
- testing/python/language/test_tilelang_language_subtype.py
- tilelang/jit/adapter/cython/adapter.py
- tilelang/jit/adapter/cython/cython_wrapper.pyx
- tilelang/jit/adapter/tvm_ffi.py
artifact_dir: evidence/pull-bundles/tilelang/gh-2037
head_ref_oid: 335f883a78a196c6bb25e92bdee1d35feefbe6c9
---
# [Bugfix][Subtype] Fix scalar fp4 store/load codegen for non-packed buffers

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

- `src/target/codegen_cuda.cc`
- `src/transform/inject_assumes.cc`
- `testing/python/language/test_tilelang_language_subtype.py`
- `tilelang/jit/adapter/cython/adapter.py`
- `tilelang/jit/adapter/cython/cython_wrapper.pyx`
- `tilelang/jit/adapter/tvm_ffi.py`

## Evidence Bundle

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