Skip to content

fix(rocsparse): Fix SpMM batching with COO segmented algorithm when batch count >65536 - #9975

Merged
jsandham merged 17 commits into
ROCm:developfrom
jsandham:spmm_batched_coo_seg2
Aug 7, 2026
Merged

jsandham merged 17 commits into
ROCm:developfrom
jsandham:spmm_batched_coo_seg2

Conversation

@jsandham

@jsandham jsandham commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Currently we use the y grid dimension to perform batch computation with SpMM COO segmented algorithm. This means that if the number of batches exceeds 65535 we will get launch errors. This PR fixes that by looping over the batch count in blocks of 32768 batches.

JIRA ID: AISPARSE-606

@jsandham
jsandham requested a review from a team as a code owner July 24, 2026 22:00
@therock-pr-bot

therock-pr-bot Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

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

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

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

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

@codecov

codecov Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../src/level3/rocsparse_coomm_template_segmented.cpp 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop    #9975    +/-   ##
=========================================
  Coverage    68.93%   68.93%            
=========================================
  Files         2762     2762            
  Lines       455032   454929   -103     
  Branches     67118    67108    -10     
=========================================
- Hits        313654   313605    -49     
+ Misses      118446   118392    -54     
  Partials     22932    22932            
Flag Coverage Δ *Carryforward flag
TensileLite-CPP 38.15% <ø> (+0.08%) ⬆️ Carriedforward from 9024b78
TensileLite-Unit 75.89% <ø> (-0.02%) ⬇️ Carriedforward from 9024b78
hipBLAS 90.62% <ø> (ø) Carriedforward from 9024b78
hipBLASLt 34.89% <ø> (ø) Carriedforward from 9024b78
hipCUB 83.47% <ø> (ø) Carriedforward from 9024b78
hipDNN 86.52% <ø> (ø) Carriedforward from 9024b78
hipFFT 47.74% <ø> (ø) Carriedforward from 9024b78
hipRAND 76.12% <ø> (ø) Carriedforward from 9024b78
hipSOLVER 69.03% <ø> (ø) Carriedforward from 9024b78
hipSPARSE 86.27% <ø> (ø) Carriedforward from 9024b78
rocBLAS 48.23% <ø> (ø) Carriedforward from 9024b78
rocFFT 48.65% <ø> (ø) Carriedforward from 9024b78
rocRAND 57.02% <ø> (ø) Carriedforward from 9024b78
rocSOLVER 76.92% <ø> (ø) Carriedforward from 9024b78
rocSPARSE 72.55% <90.00%> (+<0.01%) ⬆️
rocThrust 91.60% <ø> (ø) Carriedforward from 9024b78

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

Files with missing lines Coverage Δ
.../src/level3/rocsparse_coomm_template_segmented.cpp 76.21% <90.00%> (+0.19%) ⬆️

... and 3 files 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.

@jsandham
jsandham requested a review from a team as a code owner July 30, 2026 16:27
Comment thread projects/rocsparse/CHANGELOG.md Resolved

@dso-amd dso-amd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM (see my suggested changes).

@jsandham
jsandham merged commit 54f224d into ROCm:develop Aug 7, 2026
83 of 84 checks passed
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.

4 participants