stream optimization for aocc (#37039)

This commit is contained in:
AMD Toolchain Support 2023-04-21 04:15:17 +05:30 committed by GitHub
parent 8fb38e3982
commit d5c549f1e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,8 @@ def edit(self, spec, prefix):
if "+openmp" in self.spec:
cflags += " " + self.compiler.openmp_flag
fflags += " " + self.compiler.openmp_flag
if "%aocc" in self.spec:
cflags += " -mcmodel=large -ffp-contract=fast -fnt-store"
# Set the appropriate flags for this compiler
makefile.filter("CFLAGS = .*", "CFLAGS = {0}".format(cflags))