---
id: pr-tilelang-1845
repo: tile-ai/tilelang
pr: 1845
title: '[Enhancement] Optimize templates for half/bfloat16'
author: LJC00118
date: '2026-02-14'
url: https://github.com/tile-ai/tilelang/pull/1845
source_category: upstream-code
architectures:
- sm100
- sm90
tags:
- WGMMA
- memory_primitives
- mxfp4
techniques: []
hardware_features:
- fp4
- mxfp4
- wgmma
kernel_types:
- memory
- reduction
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 5e3c6b3bdbf21de43bfcfaf436a891c9b1a57058
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- src/op/reduce.cc
- src/target/codegen_cuda.cc
- src/tl_templates/cuda/common.h
- src/tl_templates/cuda/reduce.h
artifact_dir: evidence/pull-bundles/tilelang/gh-1845
head_ref_oid: 45d4a35d7d2b1efcb5eecda2bdb70a87467abd2f
---
# [Enhancement] Optimize templates for half/bfloat16

- Repository: `tile-ai/tilelang`
- PR: [1845](https://github.com/tile-ai/tilelang/pull/1845)
- Decision: `Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.`
- Reason: Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.

## Changed Paths

- `src/op/reduce.cc`
- `src/target/codegen_cuda.cc`
- `src/tl_templates/cuda/common.h`
- `src/tl_templates/cuda/reduce.h`

## Evidence Bundle

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