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

ECPhys: Add a "kernel-only" option to remove calls #111

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

mlange05
Copy link
Collaborator

@mlange05 mlange05 commented Jul 1, 2023

This avoids the removal of DrHook calls in the driver layer, which we actually want for benchmarking.

@mlange05 mlange05 requested a review from awnawab July 1, 2023 05:37
@github-actions
Copy link

github-actions bot commented Jul 1, 2023

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

@mlange05 mlange05 force-pushed the naml-remove-call-kernel-only branch from 5559e11 to d0b6b7b Compare July 3, 2023 08:14
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Merging #111 (cb3d375) into main (615fdc5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #111   +/-   ##
=======================================
  Coverage   92.14%   92.15%           
=======================================
  Files          89       89           
  Lines       16484    16486    +2     
=======================================
+ Hits        15190    15192    +2     
  Misses       1294     1294           
Flag Coverage Δ
lint_rules 97.36% <ø> (ø)
loki 92.09% <ø> (-0.01%) ⬇️
transformations 91.86% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ransformations/transformations/utility_routines.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

This avoids the removal of DrHook calls in the driver layer,
which we actually want for benchmarking.
@mlange05 mlange05 force-pushed the naml-remove-call-kernel-only branch from d0b6b7b to 741007e Compare July 3, 2023 08:45
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.

Valuable addition and cleanly implemented. GTG

@@ -104,15 +104,22 @@ class RemoveCallsTransformation(Transformation):
Option to extend searches to :any:`Intrinsic` nodes to
capture print/write statements
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe worth adding here in the parameters list in the docstring.

Copy link
Contributor

@awnawab awnawab left a comment

Choose a reason for hiding this comment

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

Nothing to add, very useful addition, GTG!

@reuterbal reuterbal merged commit cfb4636 into main Jul 3, 2023
@reuterbal reuterbal deleted the naml-remove-call-kernel-only branch July 3, 2023 16:59
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