Skip to content

Commit ce6e4c2

Browse files
committed
Merge upstream/main - fix backend import path for metal
2 parents 950d009 + 431c85f commit ce6e4c2

127 files changed

Lines changed: 3975 additions & 2689 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

benchmark/matmul/benchmark_matmul_intrinsic.py

Lines changed: 0 additions & 316 deletions
This file was deleted.

docs/deeplearning_operators/matmul.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Below is a simplified code snippet for a 1024 x 1024 x 1024 matrix multiplicatio
6262
```python
6363
import tilelang
6464
import tilelang.language as T
65-
from tilelang.intrinsics import make_mma_swizzle_layout
65+
from tilelang.cuda.intrinsics import make_mma_swizzle_layout
6666

6767
def matmul(M, N, K, block_M, block_N, block_K, dtype="float16", accum_dtype="float"):
6868
@T.prim_func

docs/runtime_internals/stubs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ ROCm:
2727

2828
## Implementation
2929

30-
The stubs in `src/target/stubs/` implement a lazy-loading mechanism:
30+
The CUDA stubs in `src/backend/cuda/stubs/` and ROCm stubs in
31+
`src/backend/rocm/stubs/` implement a lazy-loading mechanism:
3132

3233
- **Lazy Loading**: Libraries are loaded via `dlopen` only upon the first API call.
3334
- **Global Symbol Reuse**: For `cudart` and `nvrtc`, the stubs first check the global namespace (`RTLD_DEFAULT`) to use any already loaded symbols (e.g., from PyTorch).

examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_prefill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
import tilelang.language as T
88
from tilelang import tvm as tvm
99
from tvm import DataType
10-
from tilelang.intrinsics.mma_layout import (
10+
from tilelang.cuda.intrinsics.layout.mma_layout import (
1111
make_mma_swizzle_layout as make_swizzle_layout,
1212
)
1313
import numpy as np
1414

15-
from tilelang.intrinsics.mma_macro_generator import (
15+
from tilelang.cuda.intrinsics.macro.mma_macro_generator import (
1616
INT4TensorCoreIntrinEmitter,
1717
)
1818
from tilelang.transform import simplify_prim_func

examples/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"gemm_sp/test_example_gemm_sp.py::test_example_gemm_sp",
3434
# Flaky — passes when run in isolation, fails under parallel execution
3535
"minference/test_vs_sparse_attn.py::test_vs_sparse_attn",
36+
# CuTeDSL does not yet lower DeepSeek V4 FP4 act quant conversions.
37+
"deepseek_v4/test_tilelang_example_deepseek_v4.py::test_example_act_quant",
3638
}
3739

3840

examples/dequantize_gemm/example_dequant_gemm_fine_grained.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def tl_matmul_with_ladder_weight_only_transform_block_reduce_int4(
141141
accum_dtype,
142142
transform_b,
143143
):
144-
from tilelang.intrinsics.mma_layout import make_mma_swizzle_layout as make_swizzle_layout
145-
from tilelang.intrinsics.mma_macro_generator import (
144+
from tilelang.cuda.intrinsics.layout.mma_layout import make_mma_swizzle_layout as make_swizzle_layout
145+
from tilelang.cuda.intrinsics.macro.mma_macro_generator import (
146146
TensorCoreIntrinEmitterWithLadderTransform,
147147
)
148148

examples/gemm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Below is a more advanced snippet that showcases how to apply memory layouts, ena
174174
import tilelang.language as T
175175
# `make_mma_swizzle_layout` is a python-defined layout function
176176
# that helps align data for MMA (Matrix Multiply-Accumulate) operations.
177-
from tilelang.intrinsics import make_mma_swizzle_layout as make_swizzle_layout
177+
from tilelang.cuda.intrinsics import make_mma_swizzle_layout as make_swizzle_layout
178178

179179
def matmul(M, N, K, block_M, block_N, block_K, dtype=T.float16, accum_dtype=T.float):
180180
@T.prim_func

0 commit comments

Comments
 (0)