---
id: pr-tilelang-1982
repo: tile-ai/tilelang
pr: 1982
title: '[Enhancement] Use atomic directory rename for cache writes'
author: LeiWang1999
date: '2026-04-16'
url: https://github.com/tile-ai/tilelang/pull/1982
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark kernel
techniques:
- cache-policy
hardware_features: []
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: d098f51b8fe8e7bf1258388292583cf07a4513bf
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- 3rdparty/tvm
- testing/python/autotune/test_tilelang_autotune_atomic_save.py
- testing/python/cache/test_tilelang_kernel_cache_atomic_save.py
- testing/python/tilelang/test_tma_load.py
- tilelang/autotuner/param.py
- tilelang/cache/kernel_cache.py
- tilelang/jit/adapter/nvrtc/kernel_cache.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1982
head_ref_oid: 8e0deefa4a015771e9cfaf61df8bfe648e925906
---
# [Enhancement] Use atomic directory rename for cache writes

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

- `3rdparty/tvm`
- `testing/python/autotune/test_tilelang_autotune_atomic_save.py`
- `testing/python/cache/test_tilelang_kernel_cache_atomic_save.py`
- `testing/python/tilelang/test_tma_load.py`
- `tilelang/autotuner/param.py`
- `tilelang/cache/kernel_cache.py`
- `tilelang/jit/adapter/nvrtc/kernel_cache.py`

## Evidence Bundle

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