Skip to content

[TensileLite] Fix YAML parameter type mismatches — hipsparselt#5684

Merged
talumbau merged 1 commit intodevelopfrom
users/talumbau/fix-yaml-types-hipsparselt
Mar 25, 2026
Merged

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

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

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

Technical Details

Mechanical fix generated by utilities/fix_yaml_types.py (from hipblaslt) for:
aquavanjaram (gfx942), gfx950

187 files changed. Zero mismatches remain after fix.

See #5002 for full background on the bug, the affected parameters, and the
detection/fix tooling.

Test Plan

  • Run python3 <path-to-hipblaslt>/utilities/fix_yaml_types.py <arch_dir>
    on each architecture directory — verify it reports 0 mismatches (idempotent check)
  • Build hipsparselt with the relevant architectures — should produce no
    type-mismatch warnings at build time

Test Result

fix_yaml_types.py reports zero remaining mismatches across all 187 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 <path-to-hipblaslt>/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

@talumbau
Copy link
Copy Markdown
Contributor Author

@hcman2 @vin-huang just a heads up that these are changes in line with #5683 #5682 #5681 #5680

Fix bool/int/float type mismatches in library logic YAML files for:
aquavanjaram (gfx942), gfx950

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` from hipblaslt.
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 <path-to-hipblaslt>/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 talumbau force-pushed the users/talumbau/fix-yaml-types-hipsparselt branch from 4e55ef0 to eb693e9 Compare March 24, 2026 17:41
Copy link
Copy Markdown
Contributor

@vin-huang vin-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@talumbau talumbau merged commit 5c37515 into develop Mar 25, 2026
20 checks passed
@talumbau talumbau deleted the users/talumbau/fix-yaml-types-hipsparselt branch March 25, 2026 14:41
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.

2 participants