Skip to content

Commit 2d3a8ce

Browse files
authored
mom5: add oneapi 2025 compiler support (#209)
1 parent 3bfca29 commit 2d3a8ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/mom5/package.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ def edit(self, spec, prefix):
306306
"""
307307

308308
# Add support for the ifx compiler
309-
config["oneapi"] = config["intel"]
309+
# TODO: `.replace() is a temporary workaround for:
310+
# icx: error: unsupported argument 'source' to option '-ffp-model='
311+
# The `.replace()` apparently doesn't modify the object.
312+
config["oneapi"] = config["intel"].replace("CFLAGS_REPRO := -fp-model precise -fp-model source", "CFLAGS_REPRO := -fp-model precise")
310313

311314
if self.spec.satisfies("@access-esm1.5:access-esm1.6"):
312315
config["post"] = """

0 commit comments

Comments
 (0)