Repository navigation
feat(hip): what a model engine needs from the runtime: graphs, device copies, mapped memory, device queries - #611
Merged
Conversation
The runtime and the affine row kernel need no change: the reduction is 32 lanes wide on any wave size, and the loader takes only the device's exact object. On a Radeon PRO W7800 (gfx1100), hip-gpu-test passes 16/16 and hip-affine-test 22/22; a gfx1151 object on it is refused with UnsupportedArchitecture.
Each generation's row lists its parts and the instructions kernels test (dot2 f16/bf16, sdot4/8, the WMMA layout, the activation type); kernels will read these, never the GPU's name. -Dhip-arch now takes any exact name in the table, and the GPU test checks the device's own name is in it. On a W7800 (gfx1100): hip-gpu-test 19/19, hip-affine-test 22/22 with its bits unchanged.
… copies, mapped memory, device queries On ashhart#463's types: device-to-device copies and 32-bit word fills (blocking and on a stream), device addresses for kernel arguments, pinned host memory mapped into the device, held-bytes counters with a device peak, module globals, function attributes and occupancy, cooperative launches, device attributes and name, HIP's error names, and graphs (stream capture, explicit kernel nodes with edges, instantiate, upload, replay, in-place node and whole-exec updates; a refused update is HIP's verdict, not an error). Host tests run on HIP's mock; on a W7800 (gfx1100) hip-gpu-test passes 36/36, the new tests checking every output exactly.
This was referenced Oct 10, 2026
Closed
8 tasks done
Owner
|
Thank you, @BlivionIaG. This is merged into main (56150e6), your commit as it was, and it ships in 1.0.6. It only touches the HIP tree. With it in, the Mac host gates pass, the Linux tests pass 423 of 423 and |
This was referenced Oct 12, 2026
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…ime: graphs, device copies, mapped memory, device queries Thanks @BlivionIaG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
What a model engine needs from #463's runtime, on its own types, the runtime slice tracked in #491:
DeviceBuffer: device-to-device copies and 32-bit word fills (blocking and on a stream),address(offset)for kernel arguments,fromHost.HostBuffer.allocMappedanddevice(): pinned host memory a kernel reads and writes with no copy.memory.usage: bytes held on the device and pinned on the host, with the device peak, for admission.Module.global,Function.attributeandFunction.occupancy; cooperative launches (Config.cooperative).Context.attributeandContext.name;Runtime.errorName.graph.zig: stream capture, explicit kernel nodes with edges, instantiate, upload, replay, in-place node updates and whole-exec updates. A refused update returns HIP's verdict and leaves the exec unchanged; a cooperative launch has no node form and is refused.No kernel or model code. Stacks on #609 (its two commits are included here until they land); review the last commit.
Receipt
mainat c37d0a4 (+ build(hip): -Dhip-arch accepts gfx1030 (RDNA2) and gfx1100 (RDNA3) #607, feat(hip): a caps table from RDNA2 to RDNA4, keyed by exact gfx name #609), head 89fd9ec. Zig 0.17.0, HIP 7.14.60850 (TheRock), Linux 7.1.7.hip-affine-testis unchanged.hip-host-test37/37,hip-gpu-test30/30,hip-affine-test27/27.hip-gpu-test30/30,hip-affine-test27/27.zig build test test-golden -Dcpu=apple_m1133/133 steps; Linuxzig build test31/31 steps, 304/304 tests.zig fmt --checkclean.lean_check.py: 544 problems, the same asmain.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No model path touched.)