Skip to content

Commit 802a952

Browse files
committed
Add more indirect imports
1 parent ebbd43d commit 802a952

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

examples/nemo/scripts/omp_cpu_trans.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@
6969
'par_kind.F90',
7070
]
7171

72-
# if not NEMOV4:
73-
# FILES_TO_SKIP.extend([
74-
# # TODO #3112: These produce diverging run.stat results in NEMOv5 BENCH
75-
# "dynhpg.f90",
76-
# "dynspg_ts.f90",
77-
# "icedyn_rhg_evp.f90",
78-
# "icethd_dh.f90",
79-
# "icevar.f90",
80-
# "iom_nf90.f90",
81-
# "sbcssm.f90",
82-
# "tramle.f90",
83-
# "trazdf.f90",
84-
# ])
72+
if not NEMOV4:
73+
FILES_TO_SKIP.extend([
74+
# TODO #3112: These produce diverging run.stat results in NEMOv5 BENCH
75+
"dynhpg.f90",
76+
"dynspg_ts.f90",
77+
"icedyn_rhg_evp.f90",
78+
"icethd_dh.f90",
79+
"icevar.f90",
80+
"iom_nf90.f90",
81+
"sbcssm.f90",
82+
"tramle.f90",
83+
"trazdf.f90",
84+
])
8585

8686
if PROFILING_ENABLED:
8787
# Fails with profiling enabled. issue #2723
@@ -101,6 +101,9 @@ def trans(psyir):
101101
omp_loop_trans = OMPLoopTrans(omp_schedule="static")
102102
omp_loop_trans.omp_directive = "paralleldo"
103103

104+
if psyir.name.startswith("icethd"):
105+
return
106+
104107
for subroutine in psyir.walk(Routine):
105108
print(f"Adding OpenMP threading to subroutine: {subroutine.name}")
106109

@@ -126,7 +129,7 @@ def trans(psyir):
126129
region_directive_trans=omp_parallel_trans,
127130
loop_directive_trans=omp_loop_trans,
128131
collapse=False,
129-
# privatise_arrays=(not NEMOV4 and
130-
# psyir.name not in PRIVATISATION_ISSUES),
132+
privatise_arrays=(not NEMOV4 and
133+
psyir.name not in PRIVATISATION_ISSUES),
131134
enable_reductions=REPRODUCIBLE,
132135
)

examples/nemo/scripts/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
"bdy_oce", "zdf_oce", "zdfdrg", "ldftra", "crs", "sbcapr", "tideini",
6060
"ldfdyn", "sbcapr", "sbctide", "zdfgls", "sbcrnf", "sbcisf", "dynldf_iso",
6161
"stopts", "icb_oce", "domvvl", "sms_pisces", "zdfmfc", "abl", "ice1d",
62+
"sed", "p2zlim", "oce_trc", "p4zpoc", "tide_mod", "sbcwave", "isf_oce",
63+
"step_oce", "bdyice",
6264
]
6365

6466
# Files that PSyclone could process but would reduce the performance.

0 commit comments

Comments
 (0)