Skip to content

Commit 402a38e

Browse files
authored
To use fj compiler for genesis on fugaku (#559)
1 parent 2a9d9fc commit 402a38e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

repo/genesis/package.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ def configure_args(self):
9292
env["CXXFLAGS"] = f"{opt_flags}"
9393
env["FCFLAGS"] = f"{opt_flags}"
9494
env["F77FLAGS"] = f"{opt_flags}"
95+
if spec.target == "a64fx":
96+
# Using same flags as the version installed outside benchpark
97+
env["CFLAGS"] = "-Kfast -Kocl -Kswp"
98+
env["FCFLAGS"] = "-Kocl -Kfast -Kopenmp -Nlst=t -Koptmsg=2"
99+
env["LDFLAGS"] = "-SSL2BLAMP -Kparallel -Kopenmp -Nlibomp"
100+
# if Lapack_libs is not specified, build fails when linking
101+
env["LAPACK_LIBS"] = spec["lapack"].libs.ld_flags
95102
elif spec.satisfies("%gcc"):
96103
opt_flags = "-O3 -ffast-math"
97104
env["CFLAGS"] = f"{opt_flags}"

0 commit comments

Comments
 (0)