Skip to content

[MINOR] Avoid Reading Distributed Matrix for Obtaining the Sparsity Information - #2643

Closed
ywcb00 wants to merge 3 commits into
apache:mainfrom
ywcb00:fix/recompile/sparsity/optimizer/integrate
Closed

ywcb00 wants to merge 3 commits into
apache:mainfrom
ywcb00:fix/recompile/sparsity/optimizer/integrate

Conversation

@ywcb00

@ywcb00 ywcb00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Hi,
this PR checks if the matrix object is partitioned (i.e., distributed) before calling acquireReadAndRelease and does not read the matrix if it is distributed.
All the best,
David

…sity from the in-memory matrix block if it is partitioned (i.e., distributed)
@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 72.18%. Comparing base (1a358e5) to head (7fc1645).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...g/apache/sysds/hops/rewrite/SparsityOptimizer.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2643   +/-   ##
=========================================
  Coverage     72.18%   72.18%           
- Complexity    51211    51220    +9     
=========================================
  Files          2105     2105           
  Lines        230158   230158           
  Branches      38694    38694           
=========================================
+ Hits         166139   166149   +10     
  Misses        52813    52813           
+ Partials      11206    11196   -10     
Flag Coverage Δ
java 71.49% <0.00%> (+<0.01%) ⬆️
python 76.60% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@ywcb00

ywcb00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

I am not sure if MatrixObject.isPartitioned() is the correct method way to check if the matrix is distributed. However, I could not find a respective check inside MatrixObject or ExecutionContext.

…ject has an rdd handle to determine whether it is distributed or local
… type is CP in order to exclude distributed and federated environments
@ywcb00 ywcb00 closed this in f53fa09 Dec 1, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in SystemDS PR Queue Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant