This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
DKB
/
zml
Star
0
Fork
You've already forked zml
0
mirror of
https://github.com/zml/zml.git
synced
2026-11-16 19:11:09 +00:00
Code
Issues
23
Releases
1
Packages
Activity
raphael/decoder-buffer
zml
/
dsl
/
fly
/
layout.zig
544 lines
18 KiB
Raw
Permalink
Normal View
History
kernels/fly: FlyDSL Zig DSL (#799) 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.
2026-09-14 09:57:36 +02:00
zig 0.17 (second attempt) (#923) Bump for zig 0.17 Deps: - uucode bumped to https://github.com/jacobsandlund/uucode/commit/1fb73433bba5d93366c57f23ff2e9d7939746500 - zigimg bumped to https://github.com/zigimg/zigimg/commit/734fa919fb15b7917d4eb124f53600348f4ffa30 - libvaxis bumped to https://github.com/rockorager/libvaxis/commit/14b7684272234a3d66316c0d1bbdc876d4e8997c - zio bumped to: https://github.com/lalinsky/zio/commit/417757935ef6d0f0a2396d4023a44ca82ac1901c - rules_zig upgraded to [version 0.17](https://github.com/hermeticbuild/rules_zig/releases/tag/v0.17.0) - zls is using a commit from master, but they don't have yet a tagged release so Codex did a bit of packaging. I confirmed it correctly autocompletes on my machine
2026-10-13 17:11:38 +02:00
kernels/fly: FlyDSL Zig DSL (#799) 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.
2026-09-14 09:57:36 +02:00
zig 0.17 (second attempt) (#923) Bump for zig 0.17 Deps: - uucode bumped to https://github.com/jacobsandlund/uucode/commit/1fb73433bba5d93366c57f23ff2e9d7939746500 - zigimg bumped to https://github.com/zigimg/zigimg/commit/734fa919fb15b7917d4eb124f53600348f4ffa30 - libvaxis bumped to https://github.com/rockorager/libvaxis/commit/14b7684272234a3d66316c0d1bbdc876d4e8997c - zio bumped to: https://github.com/lalinsky/zio/commit/417757935ef6d0f0a2396d4023a44ca82ac1901c - rules_zig upgraded to [version 0.17](https://github.com/hermeticbuild/rules_zig/releases/tag/v0.17.0) - zls is using a commit from master, but they don't have yet a tagged release so Codex did a bit of packaging. I confirmed it correctly autocompletes on my machine
2026-10-13 17:11:38 +02:00
kernels/fly: FlyDSL Zig DSL (#799) 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.
2026-09-14 09:57:36 +02:00
mlir/dialects: split into one package per dialect and unify them (#982) Splits the monolithic mlir/dialects library into one Bazel package per dialect, then makes every package follow the same layout, C API and Zig API. Each package owns its Zig bindings, its C API when upstream doesn't provide one, and its tests. Dialect registration moves out of the core mlir package, so a target only pulls in the dialects it actually uses. The conventions are documented in `mlir/dialects/README.md`, with a porting checklist and conformance checks. Along the way: - cute_ir is flattened, and its Cuda, CuteNVGPU and NVVM sub-dialects become their own packages - fly's ROCDL extension moves to fly_rocdl - new packages for ROCDL and UB - kernels/ is renamed to dsl/, since it holds the DSLs - every package registers through its own registerDialect, and each DSL through registerDialects, instead of dialect name strings - the C and C++ follow the LLVM and MLIR C API conventions, formatted with a new mlir/.clang-format - BUILD files share one template - accessors are named as nouns like in the rest of ZML - each package tests itself in its own test.zig, including that every bound operation is registered and that every wrapper method compiles Fixes: - memref atomic_rmw emitted the wrong kind, because the AtomicRMWKind values didn't match the pinned LLVM - the pinned Triton and Mosaic no longer have tt.cat and tpu.repeat, so the DSL's cat and repeat now lower the way tl.cat and pltpu.repeat do - the ROCDL bindings are completed: buffer address spaces, vector types, waves_per_eu range Breaking changes: - register dialects through their package instead of DialectHandle.fromString, and mlir.registerFuncExtensions becomes func.registerExtensions - accessors drop the get prefix, so getValue() becomes value() - ttir.cat and mosaic_tpu.repeat are removed, and stablehlo pad and mosaic_tpu sort take their options before the location - zml.kernel.fly.rocdl becomes fly_rocdl - Mesh.sdyMeshAttr takes a context and returns an attribute instead of text - func.func no longer prints public, its default visibility --------- Co-authored-by: Steeve Morin <steeve@zml.ai>
2026-10-26 11:41:05 +01:00
kernels/fly: FlyDSL Zig DSL (#799) 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.
2026-09-14 09:57:36 +02:00