Files
tilelang/testing/python/autotune
KurisandClaude Opus 4.6 8c3b043076 [Bugfix] Fix CuTeDSL autotune cache invalid ELF header (#1967) (#1972)
* [Bugfix] Fix CuTeDSL autotune cache saving .py as .so (#1967)

The autotune cache had no CuTeDSL-specific branch, causing it to save
the Python source file (kernel.py) as kernel_lib.so. On reload,
importlib treated the .so extension as a native extension module and
failed with "invalid ELF header".

Fix: add cutedsl branches in _save_kernel_to_disk and
_load_kernel_from_disk to use KERNEL_PY_PATH ("kernel.py") instead of
KERNEL_LIB_PATH ("kernel_lib.so"). Also saves launcher .so and cubin
artifacts when present.

Closes #1967

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [BugFix] Change _all_dtypes from set to list for deterministic order

set has non-deterministic iteration order across processes, causing
pytest-xdist workers to collect test parameters in different orders
and fail with "Different tests were collected between gw3 and gw2".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 22:36:01 +08:00
..