Skip to content

[tox] Modify test yamls - #8409

Closed
mengzcai wants to merge 5 commits into
ROCm:developfrom
mengzcai:users/mengzcai/reduce-test
Closed

mengzcai wants to merge 5 commits into
ROCm:developfrom
mengzcai:users/mengzcai/reduce-test

Conversation

@mengzcai

@mengzcai mengzcai commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for #8417 to be merged.
Waiting for #8406 to be merged.

Motivation

  1. Set SIA and 1LDSBuffer to 0, and remove deviceLDS and maxLDS in test yamls.

  2. Fix kernel bugs:

1. Fix TDM tail local-read using wrong LDS buffer (bf6_tdm_gfx1250, tdm_gfx1250,...)
2. Fix LocalReadVALU overwriting correct LDS>=64KB read address (f64_gfx1250.yaml)
  1. Reduce test size/kernels for mxf8/mxf4
    The gfx1250 mxf8/mxf4 test yamls fork a near-full Cartesian product of kernel parameters and run it against large problem sizes. This makes the FFM test pass slow (~89 min total) without adding coverage, since most
    parameter combinations are redundant. The goal is to cut runtime while keeping at least one test for every functional parameter value (HalfPLR, TDMIterateMode, TDMSplit, PGR, GSU) and every code path (unrolled / tail / edge-m / edge-n).

Technical Details

Approach:

  • mxf8: split the single monolithic benchmark into feature-focused
    solution groups, then shrink each group's problem sizes to the minimal
    set that still hits its target path.
  • mxf4: drop 2 redundant MatrixInstruction tiles (2 wave kernel).

Test Plan

Evaluate the change

Test Result

Results (Actual Solutions x Problem Sizes):

yaml before after time
mxf8_gfx1250 16x4 + 512x8 = 4160 4x4 + 12x4 + 24x4 + 42x5 = 370 40 -> 6 min
mxf4_gfx1250 - remove 2 MI 8 -> 6 min
All yamls (FFM) - - 89 -> 53 min

Submission Checklist

@codecov-commenter

codecov-commenter commented Jun 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ects/hipblaslt/tensilelite/Tensile/KernelWriter.py 0.00% 7 Missing ⚠️
...blaslt/tensilelite/Tensile/Components/LocalRead.py 0.00% 2 Missing ⚠️
...ts/hipblaslt/tensilelite/Tensile/Components/SIA.py 0.00% 2 Missing ⚠️

❌ Your project status has failed because the head coverage (77.83%) 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    #8409      +/-   ##
===========================================
- Coverage    65.04%   65.04%   -0.00%     
===========================================
  Files         2597     2597              
  Lines       403887   403891       +4     
  Branches     60168    60168              
===========================================
- Hits        262695   262690       -5     
- Misses      121963   121972       +9     
  Partials     19229    19229              
Flag Coverage Δ *Carryforward flag
TensileLite 29.66% <0.00%> (-0.01%) ⬇️
hipBLAS 90.65% <ø> (ø) Carriedforward from 7f85301
hipBLASLt 41.20% <ø> (ø)
hipCUB 82.68% <ø> (ø) Carriedforward from 7f85301
hipDNN 86.68% <ø> (ø) Carriedforward from 7f85301
hipFFT 50.97% <ø> (ø) Carriedforward from 7f85301
hipRAND 76.12% <ø> (ø) Carriedforward from 7f85301
hipSOLVER 69.18% <ø> (ø) Carriedforward from 7f85301
hipSPARSE 86.55% <ø> (ø) Carriedforward from 7f85301
rocBLAS 48.10% <ø> (ø) Carriedforward from 7f85301
rocFFT 49.48% <ø> (ø) Carriedforward from 7f85301
rocRAND 57.02% <ø> (ø) Carriedforward from 7f85301
rocSOLVER 77.83% <ø> (ø) Carriedforward from 7f85301
rocSPARSE 72.64% <ø> (ø) Carriedforward from 7f85301
rocThrust 91.34% <ø> (ø) Carriedforward from 7f85301

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

Files with missing lines Coverage Δ
...blaslt/tensilelite/Tensile/Components/LocalRead.py 2.88% <0.00%> (+0.01%) ⬆️
...ts/hipblaslt/tensilelite/Tensile/Components/SIA.py 6.08% <0.00%> (-0.01%) ⬇️
...ects/hipblaslt/tensilelite/Tensile/KernelWriter.py 9.28% <0.00%> (-0.01%) ⬇️

... and 1 file with indirect coverage changes

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

@mengzcai
mengzcai force-pushed the users/mengzcai/reduce-test branch 2 times, most recently from 1337562 to 6b08743 Compare June 15, 2026 08:01
@mengzcai mengzcai changed the title [tox] Reduce test size/kernels for mxf8/mxf4 yamls [tox] modify test yamls Jun 15, 2026
@mengzcai
mengzcai force-pushed the users/mengzcai/reduce-test branch from 6b08743 to 12705c7 Compare June 15, 2026 09:59
mengzcai and others added 3 commits June 15, 2026 18:37
Defer SIA0 non-TDM PGR2 global reads until after the local-write
iteration consumes the previous vgprG2L values, and keep tail
local-read offsets reset before tail MACs.

This prevents next-prefetch buffer loads from clobbering data
before it is stored to LDS.
@mengzcai
mengzcai force-pushed the users/mengzcai/reduce-test branch from 12705c7 to 756d30e Compare June 15, 2026 18:38
mengzcai added 2 commits June 15, 2026 18:47
  Before: TDM + double-buffer tail forced the tail LR offsets back to
          buffer0, but the TDM write pointer may stay at buffer1.
          (after an odd number of main-loop iters)
  After:  No longer forces buffer 0 in the tail, unless wider local read
          needs the offset recomputed (numReadsIterCoalesced>1).

  Repro/affected tests: TDM kernels with a tail
                        e.g. bf6_tdm_gfx1250, tdm_gfx1250, ...
  1. Set LDS>=64KB and 1LDSB and SIA0 to reproduce the issue
  2. Fix test yaml: f64_gfx1250 (using LocalReadVALU)
@mengzcai
mengzcai force-pushed the users/mengzcai/reduce-test branch from 756d30e to afcc188 Compare June 15, 2026 18:57
@mengzcai mengzcai changed the title [tox] modify test yamls [tox] Modify test yamls, and fix kernel bugs Jun 15, 2026
@mengzcai
mengzcai requested a review from jichangjichang June 15, 2026 19:02
@mengzcai mengzcai changed the title [tox] Modify test yamls, and fix kernel bugs [tox] Modify test yamls Jun 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been inactive for 25 days and will be marked as stale.

If you would like to keep this PR open, please:

  • Add new commits
  • Add a comment explaining why it should remain open

This PR will be automatically closed in 5 days if no further activity occurs.

@github-actions github-actions Bot added the Stale PR has no activity for 25+ days label Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed due to inactivity (30 days with no updates).

If you'd like to continue working on this, feel free to reopen the PR or create a new one.

@github-actions github-actions Bot closed this Jul 18, 2026
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