Skip to content

refactor(rocsparse): retire 5.1 feature flags - #14137

Merged
amontoison merged 1 commit into
ROCm:developfrom
amontoison:rocsparse_remove_old_feature_flags
Oct 24, 2026
Merged

amontoison merged 1 commit into
ROCm:developfrom
amontoison:rocsparse_remove_old_feature_flags

Conversation

@amontoison

Copy link
Copy Markdown
Contributor

Summary

  • Retires the rocSPARSE 5.1 build flags SPMAT_SCALE, SDDMM_BATCHED, ELL_TRSV and DIAGONAL_SOLVE, which have been added in the 5.1.0 release.
  • Removes the corresponding CMake options (ROCSPARSE_ENABLE_SPMAT_SCALE, ROCSPARSE_ENABLE_SDDMM_BATCHED, BUILD_WITH_ELL_TRSV, BUILD_WITH_DIAGONAL_SOLVE), the #cmakedefine entries in rocsparse-config.h.in and the Doxygen PREDEFINED entries. The former ON code paths are now permanent (library, tests, benchmarks, samples).
  • Moves ROCSPARSE_WITH_TRSM_REFACTORING from the 5.1 to the 5.2 section of rocsparse-config.h.in.

Follows the same approach as #11265 (retirement of the 4.7 / 5.0 flags).

@therock-pr-bot

therock-pr-bot Bot commented Oct 21, 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.

@YvanMokwinski

Copy link
Copy Markdown
Contributor

This will potentially have many conflicts in a week with the flood of PRs that will need to be merged. Just a thought.

@amontoison

Copy link
Copy Markdown
Contributor Author

I propose that we merge this PR first in the upcoming cycle, as we did in the previous release.
It will save us from having to handle nested feature flags.
Let's discuss it tomorrow at the team meeting to make sure everyone is fine with it.

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #14137      +/-   ##
===========================================
+ Coverage    75.79%   75.84%   +0.05%     
===========================================
  Files         2880     2881       +1     
  Lines       478823   479106     +283     
  Branches     71949    71999      +50     
===========================================
+ Hits        362888   363343     +455     
+ Misses       91072    90852     -220     
- Partials     24863    24911      +48     
Flag Coverage Δ *Carryforward flag
TensileLite-CPP 48.93% <ø> (ø) Carriedforward from 4520a58
TensileLite-Unit 83.68% <ø> (ø) Carriedforward from 4520a58
hipBLAS 90.62% <ø> (ø) Carriedforward from 4520a58
hipBLASLt 64.32% <ø> (ø) Carriedforward from 4520a58
hipCUB 82.68% <ø> (ø) Carriedforward from 4520a58
hipDNN 86.85% <ø> (ø) Carriedforward from 4520a58
hipFFT 42.56% <ø> (ø) Carriedforward from 4520a58
hipRAND 76.12% <ø> (ø) Carriedforward from 4520a58
hipSOLVER 69.67% <ø> (ø) Carriedforward from 4520a58
hipSPARSE 86.99% <ø> (ø) Carriedforward from 4520a58
rocBLAS 68.73% <ø> (ø) Carriedforward from 4520a58
rocFFT 45.68% <ø> (ø) Carriedforward from 4520a58
rocRAND 57.31% <ø> (ø) Carriedforward from 4520a58
rocSOLVER 76.74% <ø> (ø) Carriedforward from 4520a58
rocSPARSE 77.16% <ø> (+0.30%) ⬆️
rocThrust 93.15% <ø> (ø) Carriedforward from 4520a58

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

Files with missing lines Coverage Δ
...arse/library/src/auxiliary/rocsparse_auxiliary.cpp 87.93% <ø> (ø)
...sparse/library/src/extra/rocsparse_spmat_scale.cpp 81.87% <ø> (ø)
...se/library/src/level2/rocsparse_diagonal_solve.cpp 84.51% <ø> (ø)
...ts/rocsparse/library/src/level2/rocsparse_spsv.cpp 83.27% <ø> (+0.32%) ⬆️
.../rocsparse/library/src/level2/rocsparse_sptrsv.cpp 74.67% <ø> (+0.11%) ⬆️
...arse/library/src/level2/rocsparse_sptrsv_descr.cpp 95.28% <ø> (ø)
...arse/library/src/level2/rocsparse_sptrsv_descr.hpp 0.00% <ø> (ø)
...library/src/level3/refactored/rocsparse_sptrsm.cpp 85.55% <ø> (+0.16%) ⬆️
...level3/refactored/rocsparse_sptrsm_buffer_size.cpp 77.27% <ø> (ø)
...c/level3/refactored/rocsparse_sptrsm_set_input.cpp 96.88% <ø> (+1.14%) ⬆️
... and 3 more

... and 37 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.

@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

Remove the SPMAT_SCALE, SDDMM_BATCHED, ELL_TRSV and DIAGONAL_SOLVE build
options and config macros; the former ON code paths are now permanent.
Move TRSM_REFACTORING to the 5.2 section of rocsparse-config.h.in.
@amontoison
amontoison force-pushed the rocsparse_remove_old_feature_flags branch from 61b915a to e30beba Compare October 23, 2026 19:55
@amontoison
amontoison enabled auto-merge (rebase) October 23, 2026 20:00
@amontoison
amontoison merged commit 560b9f1 into ROCm:develop Oct 24, 2026
129 of 130 checks passed
@amontoison
amontoison deleted the rocsparse_remove_old_feature_flags branch October 24, 2026 17:42
@assistant-librarian

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

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.

5 participants