Repository navigation
Fix compile error in MI350 with ROCm7 - #599
Merged
Merged
Conversation
rocking5566
force-pushed
the
rocking/fix-compile-error
branch
2 times, most recently
from
July 2, 2025 06:46
389803e to
3a02144
Compare
…fix-compile-error
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR restructures the kernel definition data to fix a compile error on MI350 with ROCm7 and trims configuration files accordingly.
- Replaces inline
kernels_listanddefault_kernels_dictdefinitions in Python with expanded multi-linekernelInstancecalls. - Simplifies the C++
rowwise_heuristic_dispatchfunction to always return a single kernel. - Cleans up CSVs by removing many untuned/tuned GEMM entries and updates the composable_kernel submodule commit.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle_common.py | Expanded and reformatted Python kernel definition dictionaries |
| csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle.cu | Simplified heuristic dispatch to a single return |
| aiter/configs/a8w8_bpreshuffle_untuned_gemm.csv | Removed large blocks of untuned GEMM configuration entries |
| aiter/configs/a8w8_bpreshuffle_tuned_gemm.csv | Pruned tuned GEMM entries to a small subset |
| 3rdparty/composable_kernel | Updated submodule commit |
Comments suppressed due to low confidence (4)
aiter/configs/a8w8_bpreshuffle_untuned_gemm.csv:56
- Many untuned GEMM configurations were removed from this CSV. Verify that the remaining entries still cover the full range of required (M, N, K) cases, as missing entries could lead to untested or unexpected scenarios.
16384,8192,1024
csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle.cu:28
- The dispatch function now unconditionally returns the same kernel for all (M, N, K) values, removing the original branching logic and fallback checks. Consider restoring appropriate conditional branches or adding an explicit error/fallback for unsupported K ranges to avoid incorrect kernel selection.
{
csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle_common.py:72
- [nitpick] The expanded multi-line
kernelInstanceblocks duplicate nearly identical boilerplate for each kernel configuration. Consider loading these entries from an external structured data source (e.g., JSON/CSV) or generating them programmatically to reduce code size and simplify maintenance.
0: kernelInstance(
csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle_common.py:1524
- [nitpick] Commented-out entries in
default_kernels_dictcan accumulate and clutter the code. If these configurations are no longer needed, consider removing them entirely or moving them to documentation to keep the dictionary concise.
# (-2): kernelInstance( 256, 128, 128, 256, 16, 16, 16, 16, 4, 4, [16, 16, 1], [16, 16, 1], 1, 2, [1, 32, 1, 8], [8, 8, 1], "Intrawave", 3 ),
…ld fail in ROCm7" This reverts commit 30f4e7a.
valarLip
approved these changes
Jul 2, 2025
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.
No description provided.