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

Handle inconsistent OpenACC loop clauses #2763

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

jwallwork23
Copy link
Collaborator

Partially addresses #2717.

In PSyACC, we disallow sequential clauses to be used in conjuction with gang and/or vector clauses because the combination doesn't make sense. This PR handles such clause combinations in a similar way.

I also noticed that the private ACCLoopDirective._gang (etc.) members are often accessed rather than the public properties ACCLoopDirective.gang, so addressed this. The new ACCLoopDirective._check_clauses_consistent method is used in a few places that seem sensible.

@jwallwork23 jwallwork23 added the NG-ARCH Issues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCH label Oct 30, 2024
@jwallwork23 jwallwork23 self-assigned this Oct 30, 2024
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (45291bc) to head (bbfb523).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2763   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files         354      354           
  Lines       48990    49000   +10     
=======================================
+ Hits        48926    48936   +10     
  Misses         64       64           

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

@jwallwork23 jwallwork23 marked this pull request as ready for review October 30, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NG-ARCH Issues relevant to the GPU parallelisation of LFRic and other models expected to be used in NG-ARCH ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant