Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI: Fix sparse subfunction handling when used without parent #2278

Merged
merged 4 commits into from
Dec 13, 2023
Merged

Conversation

mloubout
Copy link
Contributor

@mloubout mloubout commented Dec 8, 2023

Plus minor generic cleanup/tweaks

Fixes #2277

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (ceb6d8c) 86.83% compared to head (c110949) 86.80%.

Files Patch % Lines
devito/types/basic.py 40.00% 6 Missing ⚠️
devito/types/dense.py 84.21% 2 Missing and 1 partial ⚠️
devito/types/sparse.py 85.71% 1 Missing and 2 partials ⚠️
devito/ir/support/space.py 77.77% 2 Missing ⚠️
devito/passes/clusters/aliases.py 75.00% 2 Missing ⚠️
devito/ir/stree/tree.py 75.00% 1 Missing ⚠️
devito/ir/support/basic.py 50.00% 1 Missing ⚠️
devito/ir/support/vector.py 90.00% 1 Missing ⚠️
devito/operator/profiling.py 50.00% 1 Missing ⚠️
devito/types/tensor.py 50.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2278      +/-   ##
==========================================
- Coverage   86.83%   86.80%   -0.03%     
==========================================
  Files         229      229              
  Lines       42464    42516      +52     
  Branches     7876     7889      +13     
==========================================
+ Hits        36872    36908      +36     
- Misses       4939     4952      +13     
- Partials      653      656       +3     

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

devito/operator/operator.py Outdated Show resolved Hide resolved
devito/passes/clusters/aliases.py Show resolved Hide resolved
devito/types/dense.py Outdated Show resolved Hide resolved
@mloubout mloubout force-pushed the rotfd branch 4 times, most recently from cbded3b to b8687ce Compare December 10, 2023 04:33
devito/finite_differences/differentiable.py Outdated Show resolved Hide resolved
devito/finite_differences/differentiable.py Outdated Show resolved Hide resolved
devito/passes/clusters/aliases.py Show resolved Hide resolved
devito/types/dense.py Outdated Show resolved Hide resolved
devito/types/dense.py Outdated Show resolved Hide resolved
devito/types/sparse.py Outdated Show resolved Hide resolved
@mloubout mloubout force-pushed the rotfd branch 5 times, most recently from 3f5c5aa to 030e0b6 Compare December 13, 2023 02:46
loc_shape = []
assert len(dimensions) == len(shape)
for i, (d, s) in enumerate(zip(dimensions, shape)):
if i is cls._sparse_position:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -174,6 +191,7 @@ def _comm(self):

@property
def _coords_indices(self):
# Assume integer dtypemeans gridpioints
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@mloubout mloubout merged commit 2a9533f into master Dec 13, 2023
31 checks passed
@mloubout mloubout deleted the rotfd branch December 13, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MPI mpi-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nvc+MPI issues with non-grid devito dimensions
3 participants