Skip to content

[TensileLite] Fix YAML parameter type mismatches — mid archs#5681

Merged
talumbau merged 1 commit intodevelopfrom
users/talumbau/fix-yaml-types-mid-archs
Mar 23, 2026
Merged

[TensileLite] Fix YAML parameter type mismatches — mid archs#5681
talumbau merged 1 commit intodevelopfrom
users/talumbau/fix-yaml-types-mid-archs

Conversation

@talumbau
Copy link
Copy Markdown
Contributor

@talumbau talumbau commented Mar 20, 2026

Motivation

YAML false/true where int 0/1 is expected (and vice versa) produce
different msgpack wire types, causing std::bad_cast at C++ deserialization
time on any multi-architecture build where a wrong-type .dat file is loaded.
This fixes the existing mismatches in the mid architecture group.

Refs: AIGECORE-189
Depends on: #5001, #5002

Technical Details

Mechanical fix generated by utilities/fix_yaml_types.py for:
aldebaran, gfx1200, gfx1201

414 files changed. Zero mismatches remain after fix.

See #5002 for full background on the bug, the affected parameters, and the
landing strategy. This is one of 4 independent YAML fix PRs (small archs,
mid archs, gfx950, aquavanjaram) that can be merged in any order.

Test Plan

Test Result

fix_yaml_types.py reports zero remaining mismatches across all 414 files.

Merge Conflict Resolution

If you are resolving a merge conflict between this commit and a tuning
update to these YAML files: your tuning changes take precedence. For each
conflicted file, accept your version of the file. After resolving all
conflicts and staging the files, run:

python3 utilities/fix_yaml_types.py <arch_directory>

to re-apply the type fixes on top of your tuning data. Verify it reports
zero mismatches, then complete the merge/rebase.

Submission Checklist

Fix bool/int/float type mismatches in library logic YAML files for:
aldebaran, gfx1200, gfx1201

YAML `false`/`true` where `int 0`/`1` is expected (and vice versa) produce
different msgpack wire types, causing `std::bad_cast` at C++ deserialization
time. Generated by `utilities/fix_yaml_types.py`. Zero mismatches remain.

Refs: AIGECORE-189
Depends on: #5001 (fix wrong-type literals in assignDerivedParameters)
            #5002 (add build-time type validation for library logic YAMLs)

--- Merge conflict resolution ---

If you are resolving a merge conflict between this commit and a tuning
update to these YAML files: your tuning changes take precedence. For each
conflicted file, accept your version of the file. After resolving all
conflicts and staging the files, run:

    python3 utilities/fix_yaml_types.py <arch_directory>

to re-apply the type fixes on top of your tuning data. Verify it reports
zero mismatches, then complete the merge/rebase.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@talumbau
Copy link
Copy Markdown
Contributor Author

Note: although the Github UI shows 0 files changed. The commit is here:

473fcad

@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.21%) 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    #5681   +/-   ##
========================================
  Coverage    67.36%   67.36%           
========================================
  Files         1848     1848           
  Lines       284774   284774           
  Branches     40002    40002           
========================================
  Hits        191814   191814           
  Misses       76503    76503           
  Partials     16457    16457           
Flag Coverage Δ *Carryforward flag
hipBLAS 90.67% <ø> (ø) Carriedforward from b1ed1d7
hipBLASLt 43.49% <ø> (ø)
hipCUB 82.21% <ø> (ø) Carriedforward from b1ed1d7
hipDNN 85.49% <ø> (ø) Carriedforward from b1ed1d7
hipFFT 55.59% <ø> (ø) Carriedforward from b1ed1d7
hipRAND 76.12% <ø> (ø) Carriedforward from b1ed1d7
hipSOLVER 68.81% <ø> (ø) Carriedforward from b1ed1d7
hipSPARSE 84.70% <ø> (ø) Carriedforward from b1ed1d7
rocBLAS 47.97% <ø> (ø) Carriedforward from b1ed1d7
rocFFT 53.24% <ø> (ø) Carriedforward from b1ed1d7
rocRAND 57.07% <ø> (ø) Carriedforward from b1ed1d7
rocSOLVER 77.21% <ø> (ø) Carriedforward from b1ed1d7
rocSPARSE 71.48% <ø> (ø) Carriedforward from b1ed1d7

*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.

@math-ci-webhook
Copy link
Copy Markdown

perfci run on commit 473fcad

math-ci run

@talumbau talumbau merged commit a29f629 into develop Mar 23, 2026
19 checks passed
@talumbau talumbau deleted the users/talumbau/fix-yaml-types-mid-archs branch March 23, 2026 21:42
COrruDXC pushed a commit to COrruDXC/rocm-libraries that referenced this pull request Mar 24, 2026
## Motivation

YAML `false`/`true` where `int 0`/`1` is expected (and vice versa)
produce
different msgpack wire types, causing `std::bad_cast` at C++
deserialization
time on any multi-architecture build where a wrong-type .dat file is
loaded.
This fixes the existing mismatches in the mid architecture group.

Refs: AIGECORE-189
Depends on: ROCm#5001, ROCm#5002

## Technical Details

Mechanical fix generated by `utilities/fix_yaml_types.py` for:
aldebaran, gfx1200, gfx1201

414 files changed. Zero mismatches remain after fix.

See ROCm#5002 for full background on the bug, the affected parameters, and
the
landing strategy. This is one of 4 independent YAML fix PRs (small
archs,
mid archs, gfx950, aquavanjaram) that can be merged in any order.

## Test Plan

- Run `utilities/fix_yaml_types.py <arch_dir>` on each architecture
  directory — verify it reports 0 mismatches (idempotent check)
- Build hipblaslt with `--architecture` including these archs — ROCm#5002
  validation should emit no warnings for these files

## Test Result

`fix_yaml_types.py` reports zero remaining mismatches across all 414
files.

## Merge Conflict Resolution

If you are resolving a merge conflict between this commit and a tuning
update to these YAML files: your tuning changes take precedence. For
each
conflicted file, accept your version of the file. After resolving all
conflicts and staging the files, run:

    python3 utilities/fix_yaml_types.py <arch_directory>

to re-apply the type fixes on top of your tuning data. Verify it reports
zero mismatches, then complete the merge/rebase.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

3 participants