---
id: pr-tilelang-1980
repo: tile-ai/tilelang
pr: 1980
title: '[BugFix] Add missing fences in GEMM SM100 examples and canonicalize the order of blockIdx'
author: Rachmanino
date: '2026-03-31'
url: https://github.com/tile-ai/tilelang/pull/1980
source_category: upstream-code
architectures:
- sm100
tags:
- sm100
techniques: []
hardware_features:
- blackwell
kernel_types:
- gemm
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 0f7c21474d4a84f9d9a516e456e31811d58994d3
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/gemm_sm100/gemm_tcgen5mma_ws.py
- examples/gemm_sm100/gemm_tcgen5mma_ws_persistent.py
- src/op/builtin.cc
- src/op/builtin.h
- src/target/codegen_cuda.cc
- src/target/codegen_cutedsl.cc
- tilelang/language/builtin.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1980
head_ref_oid: 212656fda5afa9e184fa56567f4f890b96d3b3de
---
# [BugFix] Add missing fences in GEMM SM100 examples and canonicalize the order of blockIdx

- Repository: `tile-ai/tilelang`
- PR: [1980](https://github.com/tile-ai/tilelang/pull/1980)
- 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/gemm_sm100/gemm_tcgen5mma_ws.py`
- `examples/gemm_sm100/gemm_tcgen5mma_ws_persistent.py`
- `src/op/builtin.cc`
- `src/op/builtin.h`
- `src/target/codegen_cuda.cc`
- `src/target/codegen_cutedsl.cc`
- `tilelang/language/builtin.py`

## Evidence Bundle

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