Skip to content

Commit

Permalink
To use fj compiler for genesis on fugaku (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
SBA0486 authored Jan 23, 2025
1 parent 2a9d9fc commit 402a38e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions repo/genesis/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ def configure_args(self):
env["CXXFLAGS"] = f"{opt_flags}"
env["FCFLAGS"] = f"{opt_flags}"
env["F77FLAGS"] = f"{opt_flags}"
if spec.target == "a64fx":
# Using same flags as the version installed outside benchpark
env["CFLAGS"] = "-Kfast -Kocl -Kswp"
env["FCFLAGS"] = "-Kocl -Kfast -Kopenmp -Nlst=t -Koptmsg=2"
env["LDFLAGS"] = "-SSL2BLAMP -Kparallel -Kopenmp -Nlibomp"
# if Lapack_libs is not specified, build fails when linking
env["LAPACK_LIBS"] = spec["lapack"].libs.ld_flags
elif spec.satisfies("%gcc"):
opt_flags = "-O3 -ffast-math"
env["CFLAGS"] = f"{opt_flags}"
Expand Down

0 comments on commit 402a38e

Please sign in to comment.