Skip to content

fix(hipblaslt): skip gfx1250 subtile codegen tests on other archs#8893

Merged
WorldofKerry merged 1 commit into
ROCm:developfrom
WorldofKerry:fix-codegen-test
Jun 30, 2026
Merged

fix(hipblaslt): skip gfx1250 subtile codegen tests on other archs#8893
WorldofKerry merged 1 commit into
ROCm:developfrom
WorldofKerry:fix-codegen-test

Conversation

@WorldofKerry

@WorldofKerry WorldofKerry commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

ISSUE ID : AIHPBLAS-3658

Motivation

Address test failures on gfx950

FAILED Tensile/Tests/unit/test_subtile_gfx1250_codegen.py::TestGfx1250SubtileCodegen::test_gr_ptr_updates_tdm[A] - AssertionError: assert 's_add_u64' in '/* TDM addr update: A += 128 */\ns_add_u32 s[sgprAddressA], s[sgprAddressA], 128\n\ns_addc_u32 s[sgprAddressA+1], s[sgprAddressA+1], 128\ns_mov_b64 s[sgprtdmAGroup0+2:sgprtdmAGroup0+2+1], s[sgprAddressA:sgprAddressA+1] // sync ...
FAILED Tensile/Tests/unit/test_subtile_gfx1250_codegen.py::TestGfx1250SubtileCodegen::test_gr_ptr_updates_tdm[B] - AssertionError: assert 's_add_u64' in '/* TDM addr update: B += 128 */\ns_add_u32 s[sgprAddressB], s[sgprAddressB], 128\n\ns_addc_u32 s[sgprAddressB+1], s[sgprAddressB+1], 128\ns_mov_b64 s[sgprtdmBGroup0+2:sgprtdmBGroup0+2+1], s[sgprAddressB:sgprAddressB+1] // sync ...

Technical Details

Rocisa emits two u32 instructions on gfx950 and a single u64 on gfx1250.

Use pytestmark skipif + a module-scoped fixture to pin rocisa to gfx1250, matching the pattern in test_emitMfmaInstruction.py. On machines with an older amdclang++ that does not know gfx1250, the entire module is skipped instead of failing with wrong encodings.

Test

Expect CI to pass.

Use pytestmark skipif + a module-scoped fixture to pin rocisa to
gfx1250, matching the pattern in test_emitMfmaInstruction.py.
On machines with an older amdclang++ that does not know gfx1250,
the entire module is skipped instead of failing with wrong encodings.
@WorldofKerry WorldofKerry changed the title test: skip gfx1250 codegen tests when assembler lacks gfx1250 support [hipblaslt][tensilelite] skip gfx1250 codegen tests on other archs Jun 29, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

therock-pr-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@codecov-commenter

codecov-commenter commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (76.92%) 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    #8893   +/-   ##
========================================
  Coverage    71.34%   71.34%           
========================================
  Files         2613     2613           
  Lines       409004   409004           
  Branches     61116    61116           
========================================
  Hits        291781   291781           
  Misses       95820    95820           
  Partials     21403    21403           
Flag Coverage Δ *Carryforward flag
TensileLite 76.99% <ø> (ø)
hipBLAS 90.81% <ø> (ø) Carriedforward from 2a89753
hipBLASLt 41.36% <ø> (ø)
hipCUB 82.68% <ø> (ø) Carriedforward from 2a89753
hipDNN 86.79% <ø> (ø) Carriedforward from 2a89753
hipFFT 50.17% <ø> (ø) Carriedforward from 2a89753
hipRAND 76.12% <ø> (ø) Carriedforward from 2a89753
hipSOLVER 69.18% <ø> (ø) Carriedforward from 2a89753
hipSPARSE 86.55% <ø> (ø) Carriedforward from 2a89753
rocBLAS 48.08% <ø> (ø) Carriedforward from 2a89753
rocFFT 46.30% <ø> (ø) Carriedforward from 2a89753
rocRAND 57.07% <ø> (ø) Carriedforward from 2a89753
rocSOLVER 76.92% <ø> (ø) Carriedforward from 2a89753
rocSPARSE 72.37% <ø> (ø) Carriedforward from 2a89753
rocThrust 91.36% <ø> (ø) Carriedforward from 2a89753

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

@WorldofKerry WorldofKerry changed the title [hipblaslt][tensilelite] skip gfx1250 codegen tests on other archs fix(hipblaslt) skip gfx1250 subtile codegen tests on other archs Jun 29, 2026
@WorldofKerry WorldofKerry changed the title fix(hipblaslt) skip gfx1250 subtile codegen tests on other archs fix(hipblaslt): skip gfx1250 subtile codegen tests on other archs Jun 29, 2026
@WorldofKerry WorldofKerry marked this pull request as ready for review June 30, 2026 01:36
@WorldofKerry WorldofKerry requested a review from a team as a code owner June 30, 2026 01:36
@WorldofKerry WorldofKerry merged commit 5578ec6 into ROCm:develop Jun 30, 2026
156 of 185 checks passed
@WorldofKerry WorldofKerry deleted the fix-codegen-test branch June 30, 2026 01:46
JP-Fernando pushed a commit that referenced this pull request Jul 1, 2026
)

ISSUE ID : AIHPBLAS-3658

## Motivation

Address test failures on gfx950
```
FAILED Tensile/Tests/unit/test_subtile_gfx1250_codegen.py::TestGfx1250SubtileCodegen::test_gr_ptr_updates_tdm[A] - AssertionError: assert 's_add_u64' in '/* TDM addr update: A += 128 */\ns_add_u32 s[sgprAddressA], s[sgprAddressA], 128\n\ns_addc_u32 s[sgprAddressA+1], s[sgprAddressA+1], 128\ns_mov_b64 s[sgprtdmAGroup0+2:sgprtdmAGroup0+2+1], s[sgprAddressA:sgprAddressA+1] // sync ...
FAILED Tensile/Tests/unit/test_subtile_gfx1250_codegen.py::TestGfx1250SubtileCodegen::test_gr_ptr_updates_tdm[B] - AssertionError: assert 's_add_u64' in '/* TDM addr update: B += 128 */\ns_add_u32 s[sgprAddressB], s[sgprAddressB], 128\n\ns_addc_u32 s[sgprAddressB+1], s[sgprAddressB+1], 128\ns_mov_b64 s[sgprtdmBGroup0+2:sgprtdmBGroup0+2+1], s[sgprAddressB:sgprAddressB+1] // sync ...
```

## Technical Details

Rocisa emits two u32 instructions on gfx950 and a single u64 on gfx1250.

Use pytestmark skipif + a module-scoped fixture to pin rocisa to
gfx1250, matching the pattern in test_emitMfmaInstruction.py. On
machines with an older amdclang++ that does not know gfx1250, the entire
module is skipped instead of failing with wrong encodings.

## Test

Expect CI to pass.
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