housekeeping: build fixes, dead-code removal, docs rewrite #40
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 433 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #40"
general
weight: 0.35
ayokunle321
This change cleans up the build, removes some dead code, updates the tests and examples, and brings the documentation in line with the current code. No kernel logic was changed.
README
The README was around 623 lines, so I cut it down to 82 and moved the extra detail into the relevant docs. Typically, the README should be a quick starting point, with the deeper material kept in other docs.
The old version had a number of things that no longer matched the code. It referred to
RVSP_BACKEND_AUTO,options.dtype,RVSP_DTYPE_F32, andrvsp_csr_free, none of which exist. It also described anrvv_f32_tiledkernel and tile-size macro that were never implemented, and presented the descriptor API as a future proposal using old names.
The API design notes are now in
docs/api_design.md, and the repository layout is documented indocs/directory_structure.md.The CSR walkthrough, execution model, and algorithm sections were removed from the README. The figures remain in
docs/figures/and the material can go in a separate document or the paper. Benchmark results will go in the paper once the numbers are settled.The README is now kept simple and focuses on
Tests
Three new test files replace the old coverage that only exercised the legacy kernels. The old tests were moved to
tests/legacy/and are no longer run.All three new tests go through the public API in
include/, so no build changes were needed.csr_fixtures.hContains six A/B matrix pairs with hand-computed results covering
test_spgemm_reference_f32.cRuns every available strategy against the reference results.
test_spgemm_descr_f32.cCovers the descriptor lifecycle, ordering rules, invalid arguments, and structure reuse.
Examples
Two descriptor examples were added
spgemm_csr_descr_f32.cshows the descriptor APIspgemm_csr_reuse_f32.cshows how structure analysis can be reusedThe old
spgemm_csr_f32_otf.cexample was removed.Dead code
One unused pipeline was removed completely.
src/matmul/AxBRowIP.cwas the original prototype and had its ownmain().scripts/cooTOcsr.pygenerated the input for that prototype. The existingassemble_csr_matrixinmtx_to_csr_formatter.calready handles the CSR conversion, so the script was no longer needed.matrix_data/*.txtwas output for that pipeline and was removed as well.message.txtwas also removed.Documentation
The remaining documentation was updated to match the current code.
bench/README.md.docs/api_design.mdagainst the current public API.docs/directory_structure.md.docs/README.md.CONTRIBUTING.mdfor the current build, test, and kernel workflow.docs/rv-sparse-logo.pngintodocs/figures/.Other
matrices/getResources.shwas also cleaned up. It previously kept extra variants such as_nodenameand_bfrom each archive. It now keeps only the.mtxfile matching the archive name.The script also uses
set -euo pipefailso a failed download or other command causes the script to stop instead of continuing with incomplete data.