mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
Adds a Zig front end for the FlyDSL dialect, so AMD GPU kernels can be written in Zig alongside the existing Mosaic, Triton and tile ones, and dispatched the same way. Types and layouts are built through the dialect's own C entry points rather than by printing and reparsing assembly. That holds in both directions: host-side layout literals become attributes directly, and anything the dialect computes is read back through typed accessors. Launch geometry is derived from the device rather than hard-coded, so the same kernels run on both AMD architecture families and the tests stay architecture agnostic. Everything builds and tests on any host, no GPU needed. Also carries one unrelated cleanup, dropping a needless null terminator from the Triton and tile kernel strings.
44 lines
1.9 KiB
44 lines
1.9 KiB