Skip to content

Commit

Permalink
Loki: Update to Loki v0.2.7, including updates to SCC-CUF trafos
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Oct 28, 2024
1 parent 3ad1acd commit 0088d72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 35 deletions.
2 changes: 1 addition & 1 deletion bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ projects :
- loki :
git : https://github.com/ecmwf-ifs/loki
version : v0.2.6
version : v0.2.7
require : ecbuild
cmake : >
LOKI_ENABLE_TESTS=OFF
Expand Down
40 changes: 6 additions & 34 deletions src/cloudsc_loki/cloudsc_cuf_loki.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ expand = true
size = 'NGPBLKS'
index = 'IBL'
aliases = ['JKGLO']
index_aliases = ['JKGLO']


# Define specific transformation settings
Expand All @@ -52,7 +53,7 @@ expand = true
#
# Please note that these are intended for eventual refactoring!
[transformations.SccCuf-hoist]
classname = 'SccCufTransformation'
classname = 'SCCLowLevelCufHoist'
module = 'loki.transformations.single_column'
[transformations.SccCuf-hoist.options]
transformation_type = 'hoist'
Expand All @@ -61,42 +62,16 @@ expand = true
block_dim = '%dimensions.block_dim%'
derived_types = ['TECLDP']

[transformations.SccCuf-dynamic]
classname = 'SccCufTransformation'
module = 'loki.transformations.single_column'
[transformations.SccCuf-dynamic.options]
transformation_type = 'dynamic'
horizontal = '%dimensions.horizontal%'
vertical = '%dimensions.vertical%'
block_dim = '%dimensions.block_dim%'
derived_types = ['TECLDP']

[transformations.SccCuf-parametrise]
classname = 'SccCufTransformation'
classname = 'SCCLowLevelCufParametrise'
module = 'loki.transformations.single_column'
[transformations.SccCuf-parametrise.options]
transformation_type = 'parametrise'
horizontal = '%dimensions.horizontal%'
vertical = '%dimensions.vertical%'
block_dim = '%dimensions.block_dim%'
derived_types = ['TECLDP']

# For SCC-CUF-parametrise we need to define the
# in-source replacement via "dic2p".
[transformations.Parametrise]
classname = 'ParametriseTransformation'
module = 'loki.transformations'
options = { dic2p = {NLEV = 137} }

[transformations.HoistTemporariesAnalysis]
classname = 'HoistTemporaryArraysAnalysis'
module = 'loki.transformations'
options = { dim_vars = ['KLEV'] }

[transformations.HoistTemporariesSynthesis]
classname = 'HoistTemporaryArraysDeviceAllocatableTransformation'
module = 'loki.transformations'
options = { as_kwarguments = true }
dic2p = {NLEV = 137}


# Housekeeping and other transformations
Expand Down Expand Up @@ -131,13 +106,10 @@ expand = true

[pipelines.cuf-parametrise]
transformations = [
'Sanitise', 'DataOffload', 'SccCuf-parametrise',
'Parametrise', 'ModuleWrap', 'Dependency'
'Sanitise', 'DataOffload', 'SccCuf-parametrise', 'ModuleWrap', 'Dependency'
]

[pipelines.cuf-hoist]
transformations = [
'Sanitise', 'DataOffload', 'SccCuf-hoist',
'HoistTemporariesAnalysis', 'HoistTemporariesSynthesis',
'ModuleWrap', 'Dependency'
'Sanitise', 'DataOffload', 'SccCuf-hoist', 'ModuleWrap', 'Dependency'
]

0 comments on commit 0088d72

Please sign in to comment.