Skip to content

compiler: Fix handling for determining if functions on subdomains touch the halo - #2988

Open
EdCaunt wants to merge 2 commits into
mainfrom
halotouch-redux
Open

compiler: Fix handling for determining if functions on subdomains touch the halo#2988
EdCaunt wants to merge 2 commits into
mainfrom
halotouch-redux

Conversation

@EdCaunt

@EdCaunt EdCaunt commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread devito/ir/support/basic.py Outdated
# array allocated on the SubDomain. As such, they do not represent a shift of index
# on the physical grid and can (and should) be zeroed for the purpose of determining
# if the halo is touched.
tkns_subs = {tkn: 0 for tkn in self[findex].free_symbols if isinstance(tkn, Thickness)}

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.

search(self[findex], Thickness) ?

Comment thread devito/ir/support/basic.py Outdated
# on the physical grid and can (and should) be zeroed for the purpose of determining
# if the halo is touched.
tkns_subs = {tkn: 0 for tkn in self[findex].free_symbols if isinstance(tkn, Thickness)}
findex_wo_thickness = self[findex].subs(tkns_subs) if tkns_subs else self[findex]

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.

No need, subs({}) is no-op already

Comment thread tests/test_mpi.py Outdated

op = Operator(eqns)

print(op.ccode)

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.

debug?

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.90%. Comparing base (24444ce) to head (67ec63d).

Files with missing lines Patch % Lines
tests/test_mpi.py 15.38% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2988      +/-   ##
==========================================
- Coverage   83.54%   82.90%   -0.64%     
==========================================
  Files         257      257              
  Lines       53906    53922      +16     
  Branches     4613     4613              
==========================================
- Hits        45037    44706     -331     
- Misses       8066     8401     +335     
- Partials      803      815      +12     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.55% <100.00%> (+<0.01%) ⬆️
pytest-gpu-gcc- 78.17% <38.88%> (-0.02%) ⬇️
pytest-gpu-icx- 43.13% <38.88%> (-34.97%) ⬇️
pytest-gpu-nvc-nvidiaX ?

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants