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

(closes #717) Remove unused code #2725

Merged
merged 9 commits into from
Oct 3, 2024
Merged

(closes #717) Remove unused code #2725

merged 9 commits into from
Oct 3, 2024

Conversation

sergisiso
Copy link
Collaborator

#717 was the same than #2687 but there were some TODOs associated to it. Looking at them it turns out that they where related to the array shape querying ulility functionality in fparser2, but these are now unused (other than in its own tests) as we use the ArrayMixin utility methods.

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (6aad1d4) to head (99a1c1b).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2725      +/-   ##
==========================================
- Coverage   99.86%   99.86%   -0.01%     
==========================================
  Files         354      354              
  Lines       49112    48893     -219     
==========================================
- Hits        49048    48829     -219     
  Misses         64       64              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergisiso
Copy link
Collaborator Author

This is ready for review. Initially I just wanted to delete some unused test, but then realised that the WHERE fix also solves the last passthrough file in NEMOv4 🥳 and it has a TODO to this issue.

After removing it from the excluded file another issue hit that file: the fact that we cannot distinguish between imported calls with arguments and arrays. This was somewhat fixed in ACCKernels by listing all the NEMO FUNCTIONS, so I generalised that into utils so it can be used by all transformations.

It passed the integration tests with expected performance.

One for @arporter (since it touches the NEMO ACC Kernels) or @LonelyCat124

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

Nice work Sergi. There ought to be some prize for the PR which removes the most code. Tests all OK, integration tests look good. Reference guide unchanged.
Coverage unaffected.
Just a few minor things to tidy and then this can go on.

examples/nemo/scripts/utils.py Show resolved Hide resolved
examples/nemo/scripts/utils.py Outdated Show resolved Hide resolved
src/psyclone/psyir/frontend/fparser2.py Show resolved Hide resolved
examples/nemo/scripts/omp_gpu_trans.py Outdated Show resolved Hide resolved
examples/nemo/scripts/acc_loops_trans.py Outdated Show resolved Hide resolved
@sergisiso
Copy link
Collaborator Author

@arporter This is ready for another review

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

All good now. I've re-triggered the integration tests as master has moved on since they were last run for this branch.

@arporter
Copy link
Member

arporter commented Oct 3, 2024

Integration tests were green.

@arporter arporter merged commit dd35000 into master Oct 3, 2024
13 checks passed
@arporter arporter deleted the 717_remove_unused_code branch October 3, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants