CUDA MatMulNBits: make SM90 prepacked rejection order portable and stabilize test match prefix - #29797
Merged
tianleiwu merged 1 commit intoJul 21, 2026
Conversation
Copilot created this pull request from a session on behalf of
tianleiwu
July 21, 2026 01:28
View session
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
tianleiwu
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
MatMulNBits.Fp16_Int4_PrepackedSm90BlockSize32Rejectedwas failing in CUDA Plugin Linux CI because SM90 prepacked validation emitted environment-dependent messages before checking runner capability.This change makes rejection precedence portable across runner/build-machine combinations and stabilizes message matching via a shared prefix.
Runtime-first SM90 gating
weight_prepacked=2(SM90 layout), validation now checkssm_ == 90before compile-time native-SM90 availability checks.Stable rejection prefix contract
weight_prepacked=2 (SM90 layout)Build-support error clarity
COMPILE_HOPPER_TMA_GEMMSis unavailable, the post-runtime-check error explicitly reports missing native SM90 Hopper support.Block-size rule preserved
block_size∈{64, 128}after runtime/build checks.Test portability update
Fp16_Int4_PrepackedSm90BlockSize32Rejectedcontinues asserting only the stable shared prefix so it passes on:Motivation and Context
The failing CI test exposed that rejection order for SM90-prepacked weights depended on build configuration rather than first honoring runtime device capability, which is incorrect for SM90 layout execution on non-SM90 runners.
This update aligns validation precedence with execution constraints and makes test matching architecture-agnostic while preserving precise downstream rejection semantics.