---
id: pr-tilelang-1677
repo: tile-ai/tilelang
pr: 1677
title: '[Refactor] Move AtomicAdd Vectorization to VectorizeLoop Pass'
author: LeiWang1999
date: '2026-01-16'
url: https://github.com/tile-ai/tilelang/pull/1677
source_category: upstream-code
architectures:
- sm90
tags:
- sm90
techniques:
- vectorized-loads
hardware_features:
- hopper
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 5feb22535cc7147fb462621b9caa9d8b5cc1cb02
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/op/atomic_add.cc
- src/tl_templates/cuda/atomic.h
- src/transform/atomicadd_vectorize.cc
- src/transform/atomicadd_vectorize.h
- src/transform/loop_partition.cc
- src/transform/vectorize_loop.cc
- testing/python/language/test_tilelang_language_atomic.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1677
head_ref_oid: 173fe4d37a8e66ee511e585e676aeb34e92f4f65
---
# [Refactor] Move AtomicAdd Vectorization to VectorizeLoop Pass

- Repository: `tile-ai/tilelang`
- PR: [1677](https://github.com/tile-ai/tilelang/pull/1677)
- 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/op/atomic_add.cc`
- `src/tl_templates/cuda/atomic.h`
- `src/transform/atomicadd_vectorize.cc`
- `src/transform/atomicadd_vectorize.h`
- `src/transform/loop_partition.cc`
- `src/transform/vectorize_loop.cc`
- `testing/python/language/test_tilelang_language_atomic.py`

## Evidence Bundle

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