Skip to content

[Fix] Fix sm8x build failure: move fused_gdn_decode_post_conv_mtp to correct ifdef guard - #54008

Closed
mayuyuace wants to merge 1 commit into
vllm-project:mainfrom
mayuyuace:qiming/fix_sm8x_build
Closed

mayuyuace wants to merge 1 commit into
vllm-project:mainfrom
mayuyuace:qiming/fix_sm8x_build

Conversation

@mayuyuace

Copy link
Copy Markdown
Contributor

Summary

Fixes a compilation regression introduced in #51674 for sm8x architectures (Ampere/Ada: A100, A10, L20, RTX 4090, etc.).

Root Cause

In #51674, fused_gdn_decode_post_conv_mtp was added to ops.h inside the existing #ifdef VLLM_ENABLE_FUSED_KDA_DECODE block (after fused_kda_decode) instead of a new #ifdef VLLM_ENABLE_FUSED_GDN_DECODE block. Since VLLM_ENABLE_FUSED_KDA_DECODE only applies to sm9.0a+, sm8x builds get VLLM_ENABLE_FUSED_GDN_DECODE=1 without the declaration being visible, causing:

error: 'fused_gdn_decode_post_conv_mtp' was not declared in this scope

Fix

Move the declaration to its own #ifdef VLLM_ENABLE_FUSED_GDN_DECODE block.
CI was unaffected because it runs on Hopper/Blackwell where both macros are defined simultaneously.

How to reproduce:

docker build -f docker/Dockerfile --target vllm-openai
--build-arg torch_cuda_arch_list="8.9" .

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Signed-off-by: mayuyuace <qiming1.zhang@intel.com>
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