Expose resolved GEMM schedules in library descriptions - #3616
Open
zupengwang wants to merge 1 commit into
Open
Conversation
zupengwang
marked this pull request as ready for review
September 12, 2026 08:24
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.
The instance library currently omits the mainloop and epilogue scheduling policies from GEMM descriptions, so clients must parse kernel names to select between cooperative, ping-pong, 1-SM/2-SM, and FP8 fast-accumulation variants. Expose the resolved mainloop schedule, operand load kind, epilogue strategy, and accumulation kind as runtime enums. The mappings use collective dispatch policies and MMA CTA groups, including Auto schedules, and populate dense, grouped, sparse, blockwise, and block-scaled descriptions.
Existing constructor arguments remain compatible, and unrecognized policies retain explicit unknown values. The public description structures gain fields, so the instance library and clients must be rebuilt together. No kernel computation or scheduling implementation is changed.
Validation: the API probe fails on the exact base because the four fields are absent and passes with this change. The new host-executed unit target passes 19 tests with CUDA 13.0, 9 with CUDA 12.1, and 3 with CUDA 11.8; architecture cases are gated by toolkit support. CTest passes for all three builds. Tests ran with GPUs hidden, and a syscall trace observed no GPU device opens. This validates metadata and compilation, not Hopper/Blackwell GPU execution or performance.
Addresses #2073.
AI-assisted implementation, reviewed by the submitting author.