Skip to content

refactor(hipblaslt): convert gfx950 C library logic to dict format - #10385

Open
dsaffars wants to merge 1 commit into
users/dsaffars/Lib_conv_gfx950_Dfrom
users/dsaffars/Lib_conv_gfx950_C
Open

refactor(hipblaslt): convert gfx950 C library logic to dict format#10385
dsaffars wants to merge 1 commit into
users/dsaffars/Lib_conv_gfx950_Dfrom
users/dsaffars/Lib_conv_gfx950_C

Conversation

@dsaffars

@dsaffars dsaffars commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

JIRA ID: AIHPBLAS-4216

Convert 8 gfx950 C library logic YAML files from list to dict format.

Motivation

TensileLite is migrating gfx950 library logic YAML from the legacy list format to the canonical dict format. The dict format uses explicit root keys (ArchitectureName, CUCount, ProblemType, Solutions, etc.) and is the format TensileCreateLibrary now emits by default.
The C datatype family continues the stacked gfx950 library logic conversion. Migrating these files improves maintainability, aligns shipped logic with the current serialization contract, and reduces YAML size without changing kernel selection behavior.

Technical Details

This PR converts 8 gfx950 C library logic YAML files under:
projects/hipblaslt/library/src/amd_detail/rocblaslt/src/Tensile/Logic/asm_full/gfx950/gfx950/GridBased/
Format changes (no semantic changes intended):

  • Root metadata moves from positional list entries to named keys (MinimumRequiredVersion, ScheduleName, ArchitectureName, CUCount, DeviceNames, ProblemType, …).
  • ProblemType fields are nested under a ProblemType: mapping instead of inline list items.
  • Solution entries move from list-of-flow-mappings to a Solutions: dict keyed by solution name.
  • Boolean literals are normalized (True/Falsetrue/false).
    Scope summary:
Metric Before After
Files 8 8
Total lines 5,289 5,069

This PR is YAML-only ; no runtime, generator, or test-code changes. It builds on users/dsaffars/Lib_conv_gfx950_D in the stacked PR series.

Test Plan

For each of the 8 converted files, pre-conversion list-format YAML is compared against the new dict-format YAML using a script (same parser path as TensileCreateLibrary):

Test Result

For all 8/8 C files parsed solutions, problem types, and matching tables are semantically identical between list and dict formats.
File integrity: No files added or removed; only format conversion within the existing 8 C logic files (GridBased).
Line count: Total YAML size reduced from 5,289 to 5,069 lines (~4% reduction) with no intended change to kernel selection behavior.

Convert 8 gfx950 C library logic YAML files from list
to dict format.

# Batch: C
# Per-file lines (before -> after):
  gfx950/GridBased/gfx950_Cijk_Ailk_Bjlk_C_B_UserArgs.yaml: 332 -> 420
  gfx950/GridBased/gfx950_Cijk_Ailk_Bjlk_C_C_B_UserArgs.yaml: 332 -> 420
  gfx950/GridBased/gfx950_Cijk_Ailk_Bjlk_C_Z_B_UserArgs.yaml: 812 -> 732
  gfx950/GridBased/gfx950_Cijk_Ailk_Bljk_C_B_UserArgs.yaml: 810 -> 730
  gfx950/GridBased/gfx950_Cijk_Alik_Bjlk_C_B_UserArgs.yaml: 810 -> 730
  gfx950/GridBased/gfx950_Cijk_Alik_Bjlk_C_C_B_UserArgs.yaml: 810 -> 730
  gfx950/GridBased/gfx950_Cijk_Alik_Bjlk_C_Z_B_UserArgs.yaml: 573 -> 577
  gfx950/GridBased/gfx950_Cijk_Alik_Bljk_C_B_UserArgs.yaml: 810 -> 730
Total: 5289 -> 5069 lines across 8 files.
@dsaffars
dsaffars requested a review from a team as a code owner August 5, 2026 08:29
@therock-pr-bot

therock-pr-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled
🤖 therock-pr-bot ✅ Pass

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

therock-pr-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant