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

Inline: Skip explicit intrinsics when inlining stmt functions #461

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

mlange05
Copy link
Collaborator

The stmt function inliner does not actually test the case where the stmt function contains calls to intrinsics. This PR remedies this and fixes the corner case by including explicitly marked intrinsic calls in the skip condition.

This caused issue when the following lines attempt to touch the non-existent procedure definition.

This caused issue when the following lines attempt to touch the
non-existent procedure definition.
@mlange05 mlange05 requested a review from reuterbal December 18, 2024 04:53
Copy link

Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/461/index.html

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.29%. Comparing base (4c70917) to head (53394c7).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #461   +/-   ##
=======================================
  Coverage   93.29%   93.29%           
=======================================
  Files         221      221           
  Lines       41360    41360           
=======================================
+ Hits        38587    38588    +1     
+ Misses       2773     2772    -1     
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 93.25% <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 Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

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

Looks great, many thanks!

loki/transformations/inline/mapper.py Outdated Show resolved Hide resolved
@reuterbal reuterbal added the ready for merge This PR has been approved and is ready to be merged label Dec 18, 2024
@reuterbal reuterbal merged commit ad1e2bc into main Dec 18, 2024
13 checks passed
@reuterbal reuterbal deleted the naml-fix-stmt-func-inlining-with-intrinsics branch December 18, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge This PR has been approved and is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants