GPU Plan: Fix Density Math, Add Semiring/Masking, Adopt Two-Phase SpGEMM, and Add UVM Tuning (suggestions from GPT5-pro) #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the GPU implementation plans under
.plans/gpu_implementationto address correctness and completeness issues identified in the initial draft. It corrects scaling assumptions, introduces formal semiring and masking abstractions, replaces the kernel sketch with a proper two-phase sparse matrix multiplication (SpGEMM) design, and adds unified memory (UVM) performance guidance.Key Updates
SemiringSpecandMaskSpecas first-class concepts to define the avos semiring and structural masks (e.g., upper-triangular).cudaMemPrefetchAsyncandcudaMemAdvisefor performance on GH200/H100 systems.indptrto int64 for billion-scale workloads.Impact
No code changes yet—this PR revises the planning documents only. These updates make the GPU plan mathematically correct, technically credible, and aligned with state-of-the-art sparse GPU practice.
Next Steps