Skip to content

[ROCm] Add gfx1102/gfx1103 support - #40037

Merged
vllm-bot merged 2 commits into
vllm-project:mainfrom
ROCm:matthias.gfx1103-upstream
Apr 23, 2026
Merged

vllm-bot merged 2 commits into
vllm-project:mainfrom
ROCm:matthias.gfx1103-upstream

Conversation

@mgehre-amd

Copy link
Copy Markdown
Contributor

gfx1103 (RDNA 3, e.g. Radeon 780M iGPU) was missing from the HIP_SUPPORTED_ARCHS list in CMakeLists.txt and from the compile-time architecture macros in skinny_gemms.cu and attention.cu.

The skinny GEMM and attention kernels defined HIP__GFX1X and HIP__GFX11 by listing individual arch targets (gfx1100, gfx1101, gfx1150, gfx1151) but missed gfx1103. This caused wvSplitK kernel bodies to compile as UNREACHABLE_CODE (assert false) on gfx1103 while the wave32 reduction code was still active, resulting in a crash at runtime.

Replace HIP__GFX11 / HIP__GFX12 with the compiler-provided GFX11 / GFX12 umbrella macros which are defined for every target in each family. This avoids needing to enumerate individual targets and automatically covers future gfx11xx/gfx12xx additions.

… macros

gfx1102 and gfx1103 (RDNA 3, e.g. Radeon 780M iGPU) were missing from
the HIP_SUPPORTED_ARCHS list in CMakeLists.txt and from the compile-time
architecture macros in skinny_gemms.cu and attention.cu.

The skinny GEMM and attention kernels defined __HIP__GFX1X__ and
__HIP__GFX11__ by listing individual arch targets (__gfx1100__,
__gfx1101__, __gfx1150__, __gfx1151__) but missed gfx1102/gfx1103.
This caused wvSplitK kernel bodies to compile as UNREACHABLE_CODE
(assert false) while the wave32 reduction code was still active,
resulting in a crash at runtime.

Replace __HIP__GFX11__ / __HIP__GFX12__ with the compiler-provided
__GFX11__ / __GFX12__ umbrella macros which are defined for every
target in each family. This avoids needing to enumerate individual
targets and automatically covers future gfx11xx/gfx12xx additions.

Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the gfx1102 and gfx1103 AMD GPU architectures in the CMakeLists.txt. It also refactors the ROCm source files to use standard compiler-defined macros, such as GFX11 and GFX12, replacing the previous custom macro definitions. I have no feedback to provide.

@gshtras gshtras added the ready ONLY add when PR is ready to merge/full CI is needed label Apr 17, 2026
@vllm-bot
vllm-bot merged commit 4b7869d into vllm-project:main Apr 23, 2026
144 of 147 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Apr 23, 2026
avinashsingh77 pushed a commit to avinashsingh77/vllm that referenced this pull request Apr 27, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
Copilot AI pushed a commit to hongbolv/vllm that referenced this pull request May 7, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
Co-authored-by: hongbolv <33214277+hongbolv@users.noreply.github.com>
weifang231 pushed a commit to weifang231/eb-vllm that referenced this pull request May 13, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
my-other-github-account pushed a commit to my-other-github-account/vllm that referenced this pull request May 15, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
mfylcek pushed a commit to mfylcek/vllm that referenced this pull request May 19, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
brian-dellabetta pushed a commit to neuralmagic/vllm that referenced this pull request May 29, 2026
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants