Skip to content

Allow gfx1151_v1 kernel selection on other RDNA GPUs - #1142

Merged
0xShug0 merged 1 commit into
mainfrom
feature/rdna-kernel-impl
Oct 30, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/rdna-kernel-impl

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Allow --backend hip --backend-impl gfx1151_v1 on RDNA1–4 instead of restricting selection to gfx1151. Keep the existing implementation name and explain its original RDNA3.5 tuning target in the HIP documentation.

Pass the cached device architecture to the matmul hook. RDNA1/2 can use the existing copy, im2col, and eligible FP32 tiled matmul kernels; WMMA paths are selected only on RDNA3 or newer. Ineligible operations continue through the existing HIP kernels before any specialized kernel launches. Kernel math, shape/precision checks, and default backend selection are unchanged. No per-operation device query is added.

Validation:

  • Local Debug C++17 CUDA/CPU build passes.
  • git diff --check passes.
  • HIP compilation and hardware validation of this patch remain pending. Prior performance measurements covered gfx1151 only; this PR makes other RDNA devices available for testing without claiming a speedup on them.

Related discussion: #1103

@0xShug0 0xShug0 added the ggml label Oct 30, 2026
@0xShug0
0xShug0 merged commit f64cfb5 into main Oct 30, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/rdna-kernel-impl branch October 30, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant