FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

data: support assigning a value read by window by mloubout · Pull Request #2985 · devitocodes/devito · GitHub

data: support assigning a value read by window - #2985

Merged
mloubout merged 2 commits into
mainfrom
windowed-data
Aug 1, 2026
Merged

data: support assigning a value read by window#2985
mloubout merged 2 commits into
mainfrom
windowed-data

Conversation

Copy link
Copy Markdown
Contributor

Data.__setitem__ already restricts the assigned value to the part of it the calling rank owns. Accept any value exposing a shape and slicing, such as a memory mapped array, an HDF5 dataset or a file reader, so that it is only read where it is assigned and never read in full by any rank.

mloubout added the API api (symbolics, types, ...) label Jul 31, 2026

codecov Bot commented Jul 31, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.56%. Comparing base (f335bb1) to head (e69622f).

Files with missing lines Patch % Lines
tests/test_data.py 50.00% 21 Missing ⚠️
devito/data/data.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2985      +/-   ##
==========================================
- Coverage   83.57%   83.56%   -0.02%     
==========================================
  Files         257      257              
  Lines       53841    53887      +46     
  Branches     4609     4611       +2     
==========================================
+ Hits        44999    45029      +30     
- Misses       8044     8061      +17     
+ Partials      798      797       -1     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.53% <50.00%> (+<0.01%) ⬆️
pytest-gpu-gcc- 78.20% <56.00%> (-0.01%) ⬇️
pytest-gpu-icx- 78.11% <56.00%> (-0.04%) ⬇️
pytest-gpu-nvc-nvidiaX 69.17% <50.00%> (+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.

`Data.__setitem__` already restricts the assigned value to the part of it
the calling rank owns. Accept any value exposing a `shape` and slicing, such
as a memory mapped array, an HDF5 dataset or a file reader, so that it is
only read where it is assigned and never read in full by any rank.
The MPI data initialization notebook covers every right-hand side but the one
that is not in memory. Show that a value exposing a `shape` and slicing is
assigned like a globally replicated array, each rank reading only the window
it owns, and note that `initialize_function` inherits the same behaviour.

Copy link
Copy Markdown

Check out this pull request on 

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

mloubout merged commit 489a465 into main Aug 1, 2026
42 checks passed
mloubout deleted the windowed-data branch August 1, 2026 12:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API api (symbolics, types, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL