hpcg: add arm compiler (#35710)

This commit is contained in:
Annop Wongwathanarat 2023-03-01 10:46:12 +00:00 committed by GitHub
parent 54500a5fca
commit 68372a4dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,11 @@ class Hpcg(AutotoolsPackage):
sha256="722c13837b287e979442f8372274aa5910a290aa39f1ed1ff646116be08dcae9",
when="%aocc",
)
patch(
"https://github.com/hpcg-benchmark/hpcg/commit/e9e0b7e6cae23e1f30dd983c2ce2d3bd34d56f75.patch?full_index=1",
sha256="722c13837b287e979442f8372274aa5910a290aa39f1ed1ff646116be08dcae9",
when="%arm",
)
depends_on("mpi@1.1:")
@ -41,7 +46,11 @@ class Hpcg(AutotoolsPackage):
def configure(self, spec, prefix):
CXXFLAGS = "-O3 -ffast-math -ftree-vectorize "
if not spec.satisfies("%aocc") and not spec.satisfies("%cce"):
if (
not spec.satisfies("%aocc")
and not spec.satisfies("%cce")
and not spec.satisfies("%arm")
):
CXXFLAGS += " -ftree-vectorizer-verbose=0 "
if spec.satisfies("%cce"):
CXXFLAGS += " -Rpass=loop-vectorize"