]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
HIP: Enable Matrix cores for MMQ Kernels, Enable stream-K for CDNA 3 (#14624)
authordeepsek <redacted>
Sat, 26 Jul 2025 22:28:14 +0000 (18:28 -0400)
committerGitHub <redacted>
Sat, 26 Jul 2025 22:28:14 +0000 (00:28 +0200)
commit66906cd82a4a1fd10151707cee3f66cb61fc4055
tree54727f4fb8a66675c827d5f7baacc53a83347f36
parent11dd5a44eb180e1d69fac24d3852b5222d66fb7f
HIP: Enable Matrix cores for MMQ Kernels, Enable stream-K for CDNA 3 (#14624)

This commit adds support for MFMA instructions to MMQ. CDNA1/GFX908 CDNA2/GFX90a and CDNA3/GFX942 are supported by the MFMA-enabled code path added by this commit. The code path and stream-k is only enabled on CDNA3 for now as it fails to outperform blas in all cases on the other devices.
Blas is currently only consistently outperformed on CDNA3 due to issues in the amd-provided blas libraries.
This commit also improves the awareness of MMQ towards different warp sizes and as a side effect improves the performance of all quant formats besides q4_0 and q4_1, which regress slightly, on GCN gpus.
.devops/rocm.Dockerfile
ggml/src/ggml-cuda/common.cuh
ggml/src/ggml-cuda/mma.cuh
ggml/src/ggml-cuda/mmq.cu
ggml/src/ggml-cuda/mmq.cuh
ggml/src/ggml-cuda/vendors/hip.h