-
Notifications
You must be signed in to change notification settings - Fork 231
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 haloupdate with inner dim #2264
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2264 +/- ##
==========================================
- Coverage 86.92% 77.76% -9.17%
==========================================
Files 229 229
Lines 42150 42230 +80
Branches 7787 7802 +15
==========================================
- Hits 36639 32839 -3800
- Misses 4863 8694 +3831
- Partials 648 697 +49 ☔ View full report in Codecov by Sentry. |
c429c7e
to
ea02453
Compare
ea02453
to
3ef0603
Compare
else: | ||
hispace = None | ||
|
||
if hispace and options['mpi']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FabioLuporini replying to your comment in the other PR
We only check options['mpi']
here to avoid creating empty loops without mpi since the haloupdate is then dropped, the halo is still attached the normal way in the else
when options['mpi'] = False
so it's still there.
tests/test_mpi.py
Outdated
@@ -601,6 +602,94 @@ def test_precomputed_sparse(self, r): | |||
Operator(sf1.interpolate(u))() | |||
assert np.all(sf1.data == 4) | |||
|
|||
@pytest.mark.parallel(mode=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memo for me: probably mode=4
tests/test_mpi.py
Outdated
op.apply() | ||
assert np.all(s.data == 1) | ||
|
||
@pytest.mark.parallel(mode=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, mode=4 ?
tests/test_mpi.py
Outdated
@pytest.mark.parallel(mode=1) | ||
def test_sparse_first(self): | ||
""" | ||
Tests custom sprase function with sparse dimension as first index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo "sprase"
tests/test_mpi.py
Outdated
""" | ||
|
||
class SparseFirst(SparseFunction): | ||
""" Custom sparse class with the sparse dimension as the first one""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space floating around at start of docstring
3ef0603
to
f37445e
Compare
superseded by #2272 , closing |
Fixes #2262