Skip to content

[tensilelite] Promote type mismatch warning to hard error (3/3) - #8679

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

jaopaulolc wants to merge 1 commit into
developfrom
users/jolabega/fix-type-mismatch-error-promotion

Conversation

@jaopaulolc

@jaopaulolc jaopaulolc commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

After fixing all type mismatches in the device library YAML files (PRs
#8680, #8681, #8678), the build-time diagnostic that detects these
mismatches should be promoted from a warning to a hard error to prevent
silent regressions.

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

Technical Details

  • TensileCreateLibrary/Run.py: calls printTypeMismatchSummary() and
    raises RuntimeError when any mismatches are found, failing the device
    library build immediately.
  • Tensile/SolutionStructs/Solution.py: changes diagnostic label from
    "WARNING" to "ERROR" for clarity.
  • Tensile/Common/GlobalParameters.py: fixes GlobalReadPerMfma default
    from [1] (int) to [1.0] (float) to match schema.
  • Test YAML configs and unit tests updated to reflect the new error
    behavior and corrected default types.

35 files changed.

Test Plan

  • tox -e unit passes with updated assertions expecting errors
  • Device library build for gfx942/gfx950 passes with zero mismatches
    (confirming the YAML fixes in PRs 1a/1b/2 are complete)
  • Intentionally introducing a type mismatch triggers build failure

Test Result

  • All unit tests pass
  • Local device library builds succeed with 0 mismatches
  • Build correctly fails when a mismatch is reintroduced

Submission Checklist

Risk level

Low — promotes an existing diagnostic to a build-breaking error; only
triggers if type mismatches exist, which PRs 1a/1b/2 have eliminated.

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 👈

- Change printTypeMismatchSummary() diagnostic from WARNING to ERROR
- Raise RuntimeError in TensileCreateLibrary when mismatches are detected,
  failing the build immediately instead of continuing silently
- Fix GlobalReadPerMfma default in GlobalParameters.py from [1] to [1.0]
- Fix GlobalReadPerMfma in test fixture YAML
- Update unit test assertions for new error behavior
- Fix type mismatches in test config and streamk YAML files
@jaopaulolc
jaopaulolc force-pushed the users/jolabega/fix-type-mismatch-error-promotion branch from cd1fc95 to 3cccbb2 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
@jaopaulolc
jaopaulolc deleted the users/jolabega/fix-type-mismatch-error-promotion branch July 7, 2026 15:56
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