---
id: pr-tilelang-1741
repo: tile-ai/tilelang
pr: 1741
title: '[BugFix] Fix FP4 related vectorized cast'
author: chaospointer
date: '2026-01-27'
url: https://github.com/tile-ai/tilelang/pull/1741
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
techniques:
- vectorized-loads
hardware_features:
- fp4
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: f5525ead06348dfc7479152f7232e93bd75c148f
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/target/codegen_cuda.cc
- src/target/utils.cc
- testing/python/language/test_tilelang_language_vectorized_cast.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1741
head_ref_oid: c5f6b1eb87108278488492e32d7b091fa4639bf9
---
# [BugFix] Fix FP4 related vectorized cast

- Repository: `tile-ai/tilelang`
- PR: [1741](https://github.com/tile-ai/tilelang/pull/1741)
- 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/target/utils.cc`
- `testing/python/language/test_tilelang_language_vectorized_cast.py`

## Evidence Bundle

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