Skip to content

[tensilelite] Fix type mismatches in gfx950/gfx1250/gfx11xx device library YAML (2/3) - #8678

Closed
jaopaulolc wants to merge 1 commit into
developfrom
users/jolabega/fix-type-mismatch-gfx950-gfx12
Closed

jaopaulolc wants to merge 1 commit into
developfrom
users/jolabega/fix-type-mismatch-gfx950-gfx12

Conversation

@jaopaulolc

@jaopaulolc jaopaulolc commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

TensileLite device library YAML files for gfx950, gfx1250, gfx1151, and
gfx1201 configurations contain parameter type mismatches (int/bool/float
stored where a different type is expected). These cause std::bad_cast
exceptions at runtime when msgpack deserialization encounters unexpected
wire types.

This is part 2 of a 3-part series splitting #8623 into reviewable chunks.

Technical Details

Bulk regex fixes applied to ~120 YAML library logic files and CustomKernels
assembly files (.s with embedded YAML metadata) under:

  • projects/hipblaslt/library/.../aquavanjaram/gfx950/
  • projects/hipblaslt/library/.../aquavanjaram/gfx1250/
  • projects/hipblaslt/library/.../aquavanjaram/gfx1151/
  • projects/hipblaslt/library/.../aquavanjaram/gfx1201/
  • projects/hipblaslt/tensilelite/Tensile/CustomKernels/*.s
  • projects/hipsparselt/library/.../aquavanjaram/gfx942/

Conversions:

  • int → bool: Activation, BufferStore, ExpandPointerSwap, LDSTrInst, MIArchVgpr, NoReject, PreloadKernArgs, SourceSwap, StorePriorityOpt, TailloopInNll, Use64bShadowLimit, TransposeA, TransposeB
  • bool → int: DirectToLds, DirectToLdsMetadata, SwapGlobalReadOrder, TransposeLDSMetadata, UsePLRPack
  • int → float: GlobalReadPerMfma
  • float → int: StaggerUStride

No logic or behavior change; only corrects serialized types to match
TensileLite's schema expectations.

Test Plan

  • Device library build for gfx950 passes type validation with zero mismatches
  • CI gating builds for hipblaslt and hipsparselt pass
  • Unit tests in test_validateParameterTypes.py confirm correct type detection

Test Result

  • Local device library build completed with 0 type mismatch warnings
  • Existing unit tests pass

Submission Checklist

Risk level

None — data-only change correcting serialized types to match schema; no logic change.

Associated ticket: N/A

PR Series

# PR Files URL
1a FreeSize gfx942 YAML fixes 100 #8680
1b GridBased small + 80cu/228cu YAML fixes 36 #8682
1c GridBased large YAML files (>10MB) 26 #8683
2 gfx950/gfx1250/gfx11xx YAML + CustomKernels + hipsparselt ~120 #8678 👈
3 Error promotion + test/config fixes 35 #8679

…brary YAML

Fix parameter type mismatches in gfx950, gfx1250, gfx1151, and gfx1201
logic files that cause std::bad_cast at runtime:

- int -> bool: Activation, BufferStore, ExpandPointerSwap, LDSTrInst,
  MIArchVgpr, SourceSwap, StorePriorityOpt, TailloopInNll,
  Use64bShadowLimit, TransposeA, TransposeB
- bool -> int: DirectToLds, DirectToLdsMetadata, SwapGlobalReadOrder,
  TransposeLDSMetadata, UsePLRPack
- int -> float: GlobalReadPerMfma
- float -> int: StaggerUStride
@jaopaulolc
jaopaulolc force-pushed the users/jolabega/fix-type-mismatch-gfx950-gfx12 branch from bc11d60 to 8337333 Compare June 22, 2026 18:28
@jaopaulolc

Copy link
Copy Markdown
Contributor Author

Closing in favour of #6609 which covers these fixes.

@jaopaulolc jaopaulolc closed this Jun 22, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (77.89%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8678   +/-   ##
========================================
  Coverage    71.43%   71.43%           
========================================
  Files         2612     2612           
  Lines       406992   406992           
  Branches     60771    60771           
========================================
  Hits        290730   290730           
  Misses       94960    94960           
  Partials     21302    21302           
Flag Coverage Δ *Carryforward flag
TensileLite 76.83% <ø> (ø) Carriedforward from fc34ca4
hipBLAS 90.81% <ø> (ø) Carriedforward from fc34ca4
hipBLASLt 41.36% <ø> (ø)
hipCUB 82.68% <ø> (ø) Carriedforward from fc34ca4
hipDNN 86.71% <ø> (ø) Carriedforward from fc34ca4
hipFFT 50.79% <ø> (ø) Carriedforward from fc34ca4
hipRAND 76.12% <ø> (ø) Carriedforward from fc34ca4
hipSOLVER 69.18% <ø> (ø) Carriedforward from fc34ca4
hipSPARSE 86.55% <ø> (ø) Carriedforward from fc34ca4
rocBLAS 48.08% <ø> (ø) Carriedforward from fc34ca4
rocFFT 47.22% <ø> (ø) Carriedforward from fc34ca4
rocRAND 57.07% <ø> (ø) Carriedforward from fc34ca4
rocSOLVER 77.89% <ø> (ø) Carriedforward from fc34ca4
rocSPARSE 72.37% <ø> (ø) Carriedforward from fc34ca4
rocThrust 91.34% <ø> (ø) Carriedforward from fc34ca4

*This pull request uses carry forward flags. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaopaulolc
jaopaulolc deleted the users/jolabega/fix-type-mismatch-gfx950-gfx12 branch July 7, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

organization: ROCm project: hipblaslt rocm:gemm algos Label to identify PRs of the GEMM Algorithms team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants