Skip to content

strix-hip: define SWZ512 as the linear tile index (main stopped compiling for gfx1151 at #309) - #315

Merged
AzeezIsh merged 1 commit into
mainfrom
fix/strix-hip-swz512
Nov 2, 2026
Merged

AzeezIsh merged 1 commit into
mainfrom
fix/strix-hip-swz512

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

main does not build for strix-hip since #309. DevLab run 41365776429 on main 8ad9c3c:

prefill_paged_compute_512.cuh:148:9: error: use of undeclared identifier 'SWZ512'

The strix-hip target links inferspark_prefill_paged_512.cu from gb10 (symlink). 00a3750 (#309) made that file's KV-tile loader index shared memory through SWZ512, the XOR swizzle defined in gb10's prefill_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 here SWZ512 is 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

…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]>
@AzeezIsh
AzeezIsh merged commit f506e92 into main Nov 2, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant