Add aocc support to ESMF (#42708)

* Add aocc support to ESMF

* Update package.py
This commit is contained in:
Alex Richert 2024-02-16 09:33:47 -08:00 committed by GitHub
parent 0507c3c63d
commit d0c4675a9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,6 +110,8 @@ class Esmf(MakefilePackage):
# Testing dependencies
depends_on("perl", type="test")
conflicts("%aocc", when="@:8.3")
# Make esmf build with newer intel versions
patch("intel.patch", when="@:7.0 %intel@17:")
# Make esmf build with newer gcc versions
@ -233,6 +235,8 @@ def setup_build_environment(self, env):
env.set("ESMF_COMPILER", "nvhpc")
elif self.compiler.name == "cce":
env.set("ESMF_COMPILER", "cce")
elif self.compiler.name == "aocc":
env.set("ESMF_COMPILER", "aocc")
else:
msg = "The compiler you are building with, "
msg += '"{0}", is not supported by ESMF.'