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

CMake: Fix DERIVE_ARGUMENT_SHAPE_ARRAY and argument handling #217

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

mlange05
Copy link
Collaborator

The re-use of the _PAR prefix means we get aliasing between loki_transform_convert and loki_convert_plan. We fix this by changing the prefix in the outer loki_transform_target.

Please note, this was discussed offline and is exclusively restricted to the CMake layer only, and thus does not come with explicit test coverage. We use this in EC-physics regression, where the use of the --derive-argument-shape-array is needed for performance reasons in the surface sub-branches - it's been verified to work there.

The re-use of the _PAR prefix means we get aliasing between
loki_transform_convert and loki_convert_plan. We fix this by
changing the prefix in the outer loki_transform_target.
@mlange05 mlange05 marked this pull request as ready for review January 24, 2024 13:11
Copy link

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

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3af8578) 92.26% compared to head (3f57898) 92.26%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files          96       96           
  Lines       17132    17132           
=======================================
  Hits        15807    15807           
  Misses       1325     1325           
Flag Coverage Δ
lint_rules 96.22% <ø> (ø)
loki 92.24% <ø> (ø)
transformations 91.52% <ø> (ø)

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.

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 and apologies for the oversight and mistake in the first place. Changes look good to me!


if( _PAR_UNPARSED_ARGUMENTS )
ecbuild_critical( "Unknown keywords given to loki_transform_target(): \"${_PAR_UNPARSED_ARGUMENTS}\"")
endif()

if( NOT _PAR_TARGET )
if( NOT _PAR_T_TARGET )
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like the choice _PAR_T. Reads in my head as "party" 🥳

@reuterbal reuterbal added the ready for merge This PR has been approved and is ready to be merged label Jan 24, 2024
@reuterbal reuterbal merged commit 44fcf08 into main Jan 25, 2024
12 checks passed
@reuterbal reuterbal deleted the naml-fix-cmake-transform-target branch January 25, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge This PR has been approved and is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants