[AIROCMLIR-466] Extend tuning db key with num_cu and num_chiplets#2248
Merged
mirza-halilcevic merged 6 commits intodevelopfrom Feb 24, 2026
Merged
[AIROCMLIR-466] Extend tuning db key with num_cu and num_chiplets#2248mirza-halilcevic merged 6 commits intodevelopfrom
mirza-halilcevic merged 6 commits intodevelopfrom
Conversation
umangyadav
approved these changes
Feb 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the tuning database key structure to include hardware-specific parameters (num_cu and num_chiplets) in addition to architecture and problem configuration. This enables more precise performance tuning by distinguishing entries based on the number of compute units and chiplets available on the GPU.
Changes:
- Extended tuning database key from (arch, config) to (arch, num_cu, num_chiplets, config)
- Updated parser to support three database formats: legacy (3 fields), v2 (4+ fields), and v3 (5+ fields)
- Modified all tuning database lookups and updates to use the new 4-tuple key structure
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cursor Bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
Automated weekly review of merged PRs #2234 #2240 #2248 #2249 #2251 #2254 #2257 #2258 #2259 #2270 #2271. Identifies 6 areas with weak test coverage and meaningful business risk: 1. ConcurrentQueue (no unit tests, multi-threaded, silent deadlock risk) 2. parse_tuning_db_line / read_tuning_db key schema change (no Python tests) 3. BooleanElementwiseConverter missing f16/unsigned dtype coverage 4. Attention MaxNumFOp vs MaximumFOp NaN correctness (no dedicated test) 5. firstCausalMaskIter off-by-one risk (no non-trivial shape test) 6. Sliding window attention edge cases (windowSize=0/>=seqLen/unaligned) The GitHub discussion API returned FORBIDDEN (read-only CI token); analysis committed here as a permanent record. Co-authored-by: Djordje Antic <djordje.antic@amd.com>
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.
Motivation
In addition to architecture and problem config, use number of CUs and number of chiplets as keys into a tuning database.
Technical Details
Appropriate changes made to perfRunner.py.
Submission Checklist