tilelang-devkit 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,47 @@
1
+ """tilelang-devkit — developer tooling for tilelang.
2
+
3
+ Currently provides:
4
+ - ``tilelang_devkit.lower_trace``: zero-intrusion IR pass tracing for
5
+ tilelang compilation.
6
+
7
+ Usage::
8
+
9
+ from tilelang_devkit.lower_trace import trace
10
+
11
+ with trace():
12
+ kernel = tilelang.jit(your_kernel)()
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ try:
18
+ from ._version import __commit__ as __commit__
19
+ from ._version import __commit_date__ as __commit_date__
20
+ from ._version import __version__ as __version__
21
+ except ImportError:
22
+ # Fallback when _version.py hasn't been generated yet (e.g. bare clone
23
+ # without pip install, or building from a zip without .git).
24
+ __version__ = "0.0.0+unknown"
25
+ __commit__ = "unknown"
26
+ __commit_date__ = "unknown"
27
+
28
+ # When a wheel is built from sdist, setuptools-scm re-renders _version.py
29
+ # without .git access, causing __commit__/__commit_date__ to become "None".
30
+ # Fall back to scm_version.json which is correctly preserved from the sdist
31
+ # build step (it lives in the dist-info metadata directory).
32
+ if __commit__ in (None, "None") or __commit_date__ in (None, "None"):
33
+ try:
34
+ import json as _json
35
+ from importlib.metadata import distribution as _distribution
36
+
37
+ _meta = _distribution("tilelang-devkit").read_text("scm_version.json")
38
+ if _meta is not None:
39
+ _scm = _json.loads(_meta)
40
+ if __commit__ in (None, "None"):
41
+ __commit__ = _scm.get("node", "unknown")
42
+ if __commit_date__ in (None, "None"):
43
+ __commit_date__ = _scm.get("node_date", "unknown")
44
+ except Exception:
45
+ pass
46
+
47
+ __all__ = ["__commit__", "__commit_date__", "__version__"]
@@ -0,0 +1,6 @@
1
+ """Auto-generated by setuptools-scm. Do not edit manually."""
2
+ __version__ = "0.1.0"
3
+ __commit__ = "None"
4
+ __commit_date__ = "None"
5
+ __distance__ = 0
6
+ __dirty__ = False
@@ -0,0 +1,37 @@
1
+ """lower_trace — zero-intrusion IR pass tracing for tilelang compilation.
2
+
3
+ Part of the tilelang-devkit package.
4
+
5
+ Usage::
6
+
7
+ from tilelang_devkit.lower_trace import trace
8
+
9
+ with trace():
10
+ kernel = tilelang.jit(your_kernel)()
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ from .core import (
16
+ LowerRecord,
17
+ STATUS_CODEGEN,
18
+ STATUS_COMPLETED,
19
+ STATUS_FAILED,
20
+ STATUS_SKIPPED,
21
+ disable,
22
+ enable,
23
+ reset,
24
+ trace,
25
+ )
26
+
27
+ __all__ = [
28
+ "LowerRecord",
29
+ "STATUS_CODEGEN",
30
+ "STATUS_COMPLETED",
31
+ "STATUS_FAILED",
32
+ "STATUS_SKIPPED",
33
+ "disable",
34
+ "enable",
35
+ "reset",
36
+ "trace",
37
+ ]