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

Skip privatization of arrays with existing data declarations #389

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

awnawab
Copy link
Contributor

@awnawab awnawab commented Oct 4, 2024

Arrays with existing data declarations should not be privatized in the driver gang loop. This PR adds the functionality to gather information from encompassing !$acc data regions and filter out the relevant arrays.

Copy link

github-actions bot commented Oct 4, 2024

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

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.57%. Comparing base (b6eb817) to head (66215b6).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
loki/transformations/single_column/annotate.py 96.15% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
- Coverage   95.57%   95.57%   -0.01%     
==========================================
  Files         201      201              
  Lines       39810    39833      +23     
==========================================
+ Hits        38050    38071      +21     
- Misses       1760     1762       +2     
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 95.56% <97.91%> (-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.

@awnawab awnawab force-pushed the naan-skip-annotate branch 2 times, most recently from e01d916 to 3ee37ed Compare October 4, 2024 12:04
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.

Thanks, very nice addition and implementation is well structured and tested.

This requires a rebase and a few small-ish comments that would be good to take care of.

loki/transformations/single_column/annotate.py Outdated Show resolved Hide resolved
loki/transformations/single_column/annotate.py Outdated Show resolved Hide resolved
loki/transformations/single_column/annotate.py Outdated Show resolved Hide resolved
loki/transformations/single_column/annotate.py Outdated Show resolved Hide resolved
@@ -221,14 +266,16 @@ def device_alloc_column_locals(cls, routine, column_locals):
routine.body.prepend((ir.Comment(''), pragma, ir.Comment('')))
Copy link
Collaborator

Choose a reason for hiding this comment

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

[no action required] This is not covered in tests, so we don't seem to be testing this.
(@mlange05 for info)

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.

Many thanks, changes look good to me!

Copy link
Collaborator

@mlange05 mlange05 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, GTG. :shipit:

@reuterbal reuterbal merged commit 2bbe704 into main Oct 15, 2024
13 checks passed
@reuterbal reuterbal deleted the naan-skip-annotate branch October 15, 2024 06:17
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