Skip to content

[SYSTEMDS-3891] Add OOC Reshape Primitive - #2619

Open
jessicapriebe wants to merge 3 commits into
apache:mainfrom
jessicapriebe:ooc/primitives/reshape
Open

jessicapriebe wants to merge 3 commits into
apache:mainfrom
jessicapriebe:ooc/primitives/reshape

Conversation

@jessicapriebe

@jessicapriebe jessicapriebe commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

This adds an OOC reshape primitive that reshapes matrices out-of-core by splitting input blocks into slices and storing them in the cache-owned state table. Output blocks are rebuilt individually or as block rows/columns, depending on the reshape dimensions, and are enqueued as soon as they are completed.

@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.87963% with 61 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.78%. Comparing base (4ebbdae) to head (464330e).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ds/runtime/ooc/primitives/ReshapeOOCPrimitive.java 85.64% 36 Missing and 25 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2619      +/-   ##
============================================
+ Coverage     71.41%   71.78%   +0.36%     
- Complexity    50721    50747      +26     
============================================
  Files          1642     2079     +437     
  Lines        197165   222615   +25450     
  Branches      38306    38343      +37     
============================================
+ Hits         140815   159809   +18994     
- Misses        45279    51693    +6414     
- Partials      11071    11113      +42     
Flag Coverage Δ
java 71.38% <85.87%> (-0.04%) ⬇️
python 74.96% <ø> (?)

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.

@Baunsgaard Baunsgaard 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.

Just because i was curious on the OOC operator i took a look. However, it was not super decipherable from the PR for me, so I thought I would leave some hints to clean it up and make it readable.

All just suggestions.

Comment thread src/main/java/org/apache/sysds/runtime/ooc/cache/packed/OOCPackedCache.java Outdated
Comment thread src/main/java/org/apache/sysds/runtime/ooc/primitives/ReshapeOOCPrimitive.java Outdated
Comment thread src/main/java/org/apache/sysds/runtime/ooc/primitives/ReshapeOOCPrimitive.java Outdated

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants