(Closes #2561) Add support for allocatables in the HoistLocalArraysTrans and check for kind/type dependent symbols#2893
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2893 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 371 371
Lines 52105 52155 +50
=======================================
+ Hits 52055 52105 +50
Misses 50 50 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Integration test passed but the change was not applied almost anywhere because the arrays of interest have: I think we could refine this to check that this symbol is not local to the subroutine and the subroutine doesn't have wilcard imports. |
arporter
left a comment
There was a problem hiding this comment.
Nice work Sergi. I only have minor comments.
I see that examples/nemo/scripts/acc_loops_trans.py has hoisting of local arrays switched on and looking at the 'historical' plot, performance seems OK.
|
@arporter This is ready for another look |
arporter
left a comment
There was a problem hiding this comment.
Almost there. Unfortunately last time I missed that it would be better to use reference_accesses() rather than hardwire the check on precision and type symbols. Once that's done, this can go on. Please can you also check why the docs build failed.
|
@arporter Trying to address your last comment exposed a passthrough bug that we need to solve, so for now I just added a TODO. The linkcheck was failing for password protected links - don't ask me why we didn't fail on these before. Ready for another look. |
arporter
left a comment
There was a problem hiding this comment.
Thanks Sergi, all looks good now.
I'll fire off the integration tests to be on the safe side.
arporter
left a comment
There was a problem hiding this comment.
Integration tests were all green.
Will proceed to merge.
No description provided.