Skip to content

Commit

Permalink
LOKI: update CPU only config for debug transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Apr 17, 2024
1 parent 5c24083 commit 3f12b8a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/ecwam/ecwam_loki.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,27 @@ replicate = true
# do not attempt to look up the source files for these.
disable = [
'yomhook', 'abor1', 'abort1', 'gstats', 'yowgstats', 'wam_user_clock',
'parkind1', 'propag_wam', 'newwind', 'oml_mod', 'field_module', 'incdate',
'parkind1', 'propag_wam', 'newwind', 'oml_mod', 'field_module', 'incdate', 'yowfield_mod',
'ieee_arithmetic', # intrinsic modules (should have INTRINSIC in their USE statement)
'mfeb_length', 'cdm', # internal functions
'outwspec_io_serv_handler', 'outint_io_serv_handler', 'ifstowam_handler', # procedure pointers
'*%init', '*%update_view', '*%final', '*%ensure_host', '*%update_device'
]

# modules to be parsed but not transformed
ignore = ['yowgrid', 'yowtest', 'yowshal', 'yowdrvtype']

# Prune the tree for these to ensure they are not processed by transformations
block = ['ec_parkind', 'parkind_wave']

utility_routines = ['dr_hook', 'abort1', 'write(iu06']
# Utility calls and IO statements to remove
[transformations.RemoveCodeTransformation]
module = "loki.transform"
[transformations.RemoveCodeTransformation.options]
remove_marked_regions = true
remove_dead_code = false
call_names =['dr_hook', 'abort1']
intrinsic_names = ['write(iu06']

# Define entry point for call-tree transformation
[routines.wamintgr]
Expand All @@ -43,10 +53,6 @@ utility_routines = ['dr_hook', 'abort1', 'write(iu06']
bounds = ["KIJS", "KIJL"]
aliases = ["NPROMA_WAM"]

[dimensions.vertical]
size = "NFRE"
index = "M"

[dimensions.block_dim]
size = "NCHNK"
index = "ICHNK"

0 comments on commit 3f12b8a

Please sign in to comment.