Repository navigation
strix-hip: define SWZ512 as the linear tile index (main stopped compiling for gfx1151 at #309) - #315
Merged
Merged
Conversation
…ling for gfx1151 at #309) The strix-hip target links inferspark_prefill_paged_512.cu from gb10. Since 00a3750 (#309), that file's KV-tile loader indexes shared memory through SWZ512, the XOR swizzle defined in gb10's prefill_paged_compute_512.cuh. strix-hip has its own (native) copy of that header with no SWZ512, so every strix-hip build fails: "prefill_paged_compute_512.cuh:148:9: error: use of undeclared identifier 'SWZ512'" (DevLab run 41365776429, main 8ad9c3c). This header reads the tiles linearly (smem_K[row * HDIM_512 + col]), so SWZ512 here is that linear index, exactly what the loader wrote before #309: strix-hip output is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
main does not build for strix-hip since #309. DevLab run 41365776429 on main 8ad9c3c:
The strix-hip target links
inferspark_prefill_paged_512.cufrom gb10 (symlink). 00a3750 (#309) made that file's KV-tile loader index shared memory throughSWZ512, the XOR swizzle defined in gb10'sprefill_paged_compute_512.cuh. strix-hip keeps its own native copy of that header without it.The strix-hip header reads the tiles linearly (
smem_K[row * HDIM_512 + col]), so hereSWZ512is defined as that linear index, which is exactly what the loader wrote before #309. strix-hip output is unchanged, and gb10 is untouched (the macro is#ifndef-guarded in the strix-hip header only).DevLab build of this branch: 41376440077.
🤖 Generated with Claude Code