Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/gemm_sp/example_custom_compress.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Copyright (c) Tile-AI Corporation.
# Licensed under the MIT License.
import argparse

import tilelang
Expand Down
2 changes: 0 additions & 2 deletions examples/gemm_sp/example_gemm_sp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Copyright (c) Tile-AI Corporation.
# Licensed under the MIT License.
import argparse

import tilelang
Expand Down
10 changes: 5 additions & 5 deletions tilelang/language/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
alloc_tcgen05_instr_desc, # noqa: F401
empty, # noqa: F401
)
from .copy import copy, c2d_im2col # noqa: F401
from .copy_op import copy, c2d_im2col # noqa: F401
from tilelang.tileop.base import GemmWarpPolicy # noqa: F401
from .gemm import gemm, gemm_v1, gemm_v2 # noqa: F401
from .gemm_op import gemm, gemm_v1, gemm_v2 # noqa: F401
from .experimental.gemm_sp import gemm_sp, gemm_sp_v2 # noqa: F401
from .fill import fill, clear # noqa: F401
from .reduce import (
from .fill_op import fill, clear # noqa: F401
from .reduce_op import (
reduce, # noqa: F401
reduce_max, # noqa: F401
reduce_min, # noqa: F401
Expand All @@ -81,7 +81,7 @@
warp_reduce_bitand, # noqa: F401
warp_reduce_bitor, # noqa: F401
)
from .print import print, device_assert # noqa: F401
from .print_op import print, device_assert # noqa: F401
from .customize import (
atomic_max, # noqa: F401
atomic_min, # noqa: F401
Expand Down
4 changes: 1 addition & 3 deletions tilelang/language/atomic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Copyright (c) Tile-AI Corporation.
# Licensed under the MIT License.
"""Atomic operations for tilelang."""
"""Atomic operations exposed on the TileLang language surface."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/builtin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Builtin operations exposed on the TileLang language surface."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/copy.py → tilelang/language/copy_op.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Copy operations exposed on the TileLang language surface."""

from __future__ import annotations
from typing import Literal
Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/customize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Some customized operations frequently used in tensor programming, exposed on the TileLang language surface."""

from __future__ import annotations
import tilelang.language as T
Expand Down
2 changes: 2 additions & 0 deletions tilelang/language/fastmath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Fast math operations exposed on the TileLang language surface."""

from tvm import tir


Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/fill.py → tilelang/language/fill_op.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Fill operations exposed on the TileLang language surface."""

from __future__ import annotations
from tvm import tir
Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/gemm.py → tilelang/language/gemm_op.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""GEMM (General Matrix Multiplication) operators exposed on the TileLang language surface."""

from __future__ import annotations
from tilelang.tileop.base import GemmWarpPolicy
Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/kernel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Kernel launching language interface in TileLang."""

from __future__ import annotations
from collections import deque
Expand Down
2 changes: 1 addition & 1 deletion tilelang/language/logical.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Logical operations exposed on the TileLang language surface."""

from __future__ import annotations

Expand Down
13 changes: 10 additions & 3 deletions tilelang/language/loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Loop related language interfaces in TileLang."""

from __future__ import annotations
from typing import Any
Expand Down Expand Up @@ -175,5 +175,12 @@ def unroll(
return UnrollForWithStep(start, stop, step, annotations=annotations)


Serial = serial
Unroll = unroll
# "Serial" and "Unroll" are aliases of "T.serial" and "T.unroll". We use uppercase to emphasize that they are tile-level loops.


def Serial(*args, **kwargs):
return serial(*args, **kwargs)


def Unroll(*args, **kwargs):
return unroll(*args, **kwargs)
2 changes: 2 additions & 0 deletions tilelang/language/math_intrinsics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Common math intrinsics exposed on the TileLang language surface."""

from tvm import tir


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tilelang/language/proxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Buffer/Tensor proxy in TileLang."""

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""The language interface for tl programs."""
"""Reduce operations exposed on the TileLang language surface."""

from __future__ import annotations
from tvm import tir
Expand Down
3 changes: 1 addition & 2 deletions tilelang/quantize/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
# Copyright (c) Tile-AI Corporation.
# Licensed under the MIT License.

# The code below is mostly copied from mlc.ai quantization.py in mlc-llm.
# pylint: disable=invalid-name,missing-function-docstring,unused-variable
"""TIR computation utilities for quantization."""
Expand Down
Loading