-
Notifications
You must be signed in to change notification settings - Fork 30
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 #2854) exclude char assignments from ACC KERNELS regions #2857
Conversation
I'm not entirely happy with the code duplication here but this PR is for OpenACC functionality and the existing check is in the conversion of array assignments to loops so there's not much common ground between them. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2857 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 359 359
Lines 50981 50995 +14
=======================================
+ Hits 50926 50940 +14
Misses 55 55 ☔ View full report in Codecov by Sentry. |
I've solved the duplication by making the validation a separate classmethod in ArrayAssignment2LoopsTrans. Coverage is 100%. I'll set the integration tests running. |
Integration test for NEMOv4 failed but only because of a small bug where we failed to lower-case the name of a structure component when getting its datatype. I'll re-run that job. |
Integration tests now green. Ready for review from anyone :-) |
I changed my mind - it turns out my 'fix' revealed general case-sensitivity problems in our storage of components of a StructureType. I've fixed these now and extended the tests slightly. |
Ready for review now. Integration tests are finally happy :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arporter Couple of small changes in docs, and a couple of queries I'm just unsure about.
Imaran has found that this PR doesn't fix e.g.
I think we want 2. to be the default and 1. to be an option. I thought @sergisiso had an Issue about this (being much more defensive about what we offload) but I can'f find it? |
Although this doesn't fix all our (OpenACC) problems, it is a step forward so I've opted to keep this PR small and self-contained and not attempt to fix anything else. Ready for another look now. I'll fire off the integration tests as master has moved on a lot since I last did that. |
Integration tests work - am going to have one more local pass before marking this ready to merge. |
Small PR that picks up the functionality already in ArrayAssignment2LoopsTrans and copies it into ACCKernelsTrans.