API stability¶
What hk-dsl promises to keep working from one release to the next, and what it does not. The API reference marks each page with its level.
Stable¶
A stable name keeps its meaning across minor releases. A breaking change to one comes only in a minor version bump (0.9 to 0.10 while hk-dsl is below 1.0). The old form keeps working for one release behind a deprecation shim that warns, as contributing requires, and the CHANGELOG says what changed and what to write instead.
- The language:
hk.kernel,hk.func,hk.Tensor, the tile and strip types (hk.RT,hk.RS,hk.ST,hk.SV), loads and stores,hk.mma,hk.range,hk.if_and the dtypes (hk), withhk.math,hk.archandhk.lds. - The templates:
hk.templates, elementwise, rowwise and the GEMM with an epilogue. - The checker:
hk.check, its Python API andpython3 -m hk.check. - The PyTorch op:
hk.torch_op, its signature, the schema it derives (written tensors as out-parameters) and where it launches (torch's current stream), from 0.9.8. It was experimental from 0.9.0 to 0.9.7 and did not change in that time. - The shipped kernels' documented entry points: the functions on the
hk.opspage above its "In the submodules" section. A name that page does not document, or one starting with_, is private. - The switches' names: every
HK_*variable that turns a route on or off, andHK_DISABLE. Which routes are on by default is not part of this promise. Defaults change from release to release under the default-on rule, and the release notes list every change.
Experimental¶
An experimental name may change or go in any release, minor or patch. The CHANGELOG still says so when it does. These pages carry an Experimental line in the API reference:
hk.comm,hk.collective,hk.placementandhk.group.hk.schedules,hk.tuneandhk.profile.hk.target: the architecture facts are data that grows with each GPU.- The functions of
hk.ops' submodules that the engine integrations call (the "In the submodules" section ofhk.ops). hk.integration's Python API. What the plugins do is decided by the switches above.hk.runtime's internals and the escape hatches registered inhk.dsl.surface.
Not covered¶
No release promises these, stable or not: - The generated code: the HipKittens C++ a kernel translates to, the ISA hipcc makes of it, and anything that reads either. - The compile cache: its layout on disk and its keys. A new release may rebuild every entry. - Performance: a kernel may get faster or slower from one release to the next. The numbers the project quotes are on the scorecard, each tied to the release and stack it was measured on.
Platforms¶
From 0.9.0, every release ships manylinux_2_35 wheels (glibc 2.35 or newer)
for CPython 3.10 to 3.13 on Linux x86_64, on PyPI and as release assets
(building). 0.8.0 had cp310 and cp312 only. The GPUs and how
thoroughly each is tested are the tiers of
supported hardware.