Skip to content

compiler: Introduce operator lookup hook - #2954

Open
EdCaunt wants to merge 3 commits into
mainfrom
operator-lookup-hook
Open

EdCaunt wants to merge 3 commits into
mainfrom
operator-lookup-hook

Conversation

@EdCaunt

@EdCaunt EdCaunt commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mloubout mloubout added the API api (symbolics, types, ...) label Jun 23, 2026
@codecov

codecov Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.48%. Comparing base (af80d10) to head (4e17810).

Files with missing lines Patch % Lines
devito/arch/archinfo.py 38.46% 8 Missing ⚠️
devito/operator/operator.py 66.66% 1 Missing and 1 partial ⚠️
devito/types/equation.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2954      +/-   ##
==========================================
- Coverage   84.50%   84.48%   -0.03%     
==========================================
  Files         260      260              
  Lines       58509    58529      +20     
  Branches     4962     4964       +2     
==========================================
+ Hits        49443    49447       +4     
- Misses       8238     8250      +12     
- Partials      828      832       +4     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.41% <42.85%> (+<0.01%) ⬆️
pytest-gpu-gcc- 79.21% <42.85%> (-0.04%) ⬇️
pytest-gpu-icx- 79.14% <42.85%> (-0.03%) ⬇️
pytest-gpu-nvc-nvidiaX 69.11% <42.85%> (-0.02%) ⬇️

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.

Comment thread devito/types/equation.py

def __str__(self):
if self._subdomain is not None:
return (f"{self.__class__.__name__}({self.lhs}, {self.rhs},"

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.

nitpicking, this part of the fstring is identical to the one you return if no subdomain is present...

expressions = cls._sanitize_exprs(expressions, **kwargs)

# Hook for retrieval of preexisting operators
# TODO: should this emit timing info if an operator is retrieved

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.

only in the hook, I'd say? so I guess you can drop this TODO comment...

@EdCaunt
EdCaunt force-pushed the operator-lookup-hook branch from afa93a8 to 86d0d36 Compare June 29, 2026 14:27
@EdCaunt
EdCaunt force-pushed the operator-lookup-hook branch from 6bdc180 to 4e17810 Compare November 6, 2026 11:50

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

API api (symbolics, types, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants