Skip to content

compiler: Memoise unbounded - #3056

Open
EdCaunt wants to merge 1 commit into
mainfrom
unbounded
Open

EdCaunt wants to merge 1 commit into
mainfrom
unbounded

Conversation

@EdCaunt

@EdCaunt EdCaunt commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Yields moderate compilation speedup for CPML-like operators (possibly others too)

@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.27%. Comparing base (0164e85) to head (bb4833c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3056      +/-   ##
==========================================
+ Coverage   84.26%   84.27%   +0.01%     
==========================================
  Files         258      258              
  Lines       56982    56983       +1     
  Branches     4854     4854              
==========================================
+ Hits        48016    48023       +7     
+ Misses       8139     8135       -4     
+ Partials      827      825       -2     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.57% <100.00%> (+<0.01%) ⬆️
pytest-gpu-gcc- 79.03% <100.00%> (+<0.01%) ⬆️
pytest-gpu-icx- 78.97% <100.00%> (-0.01%) ⬇️
pytest-gpu-nvc-nvidiaX 69.14% <100.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.

@mloubout mloubout left a comment

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.

Looks fine, is unbounded really called thawt much?

@EdCaunt

EdCaunt commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

According to profiling, it's enough to cause some amount of overhead? It's a small uplift, but also an easy tweak

sdims = search(expr, StencilDimension, mode='unique', deep=True)

return sdims - bound
# Immutable, as the cached result is shared across callers

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, imho useless comment

@FabioLuporini FabioLuporini left a comment

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.

uncontroversial

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants