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

SCC: Better logging and warning for "bad" code constructs #125

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

mlange05
Copy link
Collaborator

Note, this PR stack on top of #124 and should only be reviewed once this is merged.

A small housekeeping PR that homogenises the detailed logging info in Loki-SCC passes (after the removal of the wrappers), and adds some more warnings for "correct, but bad" code constructs that should be resolved in the original source. This includes private array declarations at the "vector" level and wrong ordering of parallel directives (loop vector inside loop seq).

Please note that the latter requires more advanced features (proper source-level subroutine inlining) that are currently still under development to truly mitigate. In the meantime, removing some of these by hand seems to have small positive effects in ec-physics regression.

@github-actions
Copy link

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

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #125 (6098cdb) into main (cf5c2c6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   92.10%   92.10%           
=======================================
  Files          89       89           
  Lines       16540    16546    +6     
=======================================
+ Hits        15234    15240    +6     
  Misses       1306     1306           
Flag Coverage Δ
lint_rules 96.01% <ø> (ø)
loki 92.04% <100.00%> (ø)
transformations 91.68% <100.00%> (+0.02%) ⬆️

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

Files Changed Coverage Δ
loki/transform/transform_array_indexing.py 93.44% <100.00%> (ø)
...mations/transformations/single_column_coalesced.py 97.97% <100.00%> (+0.04%) ⬆️

@MichaelSt98 MichaelSt98 mentioned this pull request Aug 30, 2023
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.

Uncontroversial and very useful. Many thanks!

@reuterbal reuterbal merged commit 3846c67 into main Aug 31, 2023
11 checks passed
@reuterbal reuterbal deleted the naml-scc-more-trafo-logging branch August 31, 2023 11:15
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