stream optimization for aocc (#37039)
This commit is contained in:
parent
8fb38e3982
commit
d5c549f1e6
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ def edit(self, spec, prefix):
|
||||||
if "+openmp" in self.spec:
|
if "+openmp" in self.spec:
|
||||||
cflags += " " + self.compiler.openmp_flag
|
cflags += " " + self.compiler.openmp_flag
|
||||||
fflags += " " + 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
|
# Set the appropriate flags for this compiler
|
||||||
makefile.filter("CFLAGS = .*", "CFLAGS = {0}".format(cflags))
|
makefile.filter("CFLAGS = .*", "CFLAGS = {0}".format(cflags))
|
||||||
|
|
Loading…
Reference in a new issue