openloops: use cmodel small on aarch64 instead of large (#48299)

This commit is contained in:
Karol Krizka 2024-12-27 17:07:54 +01:00 committed by GitHub
parent 66a00fe103
commit e76f8fda2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,13 +277,13 @@ def configure(self, spec, prefix):
if self.spec.satisfies("@2.1.1") and not is_intel:
f.write("gfortran_f_flags = -ffree-line-length-none " + "-fdollar-ok ")
if self.spec.target.family == "aarch64":
f.write("-mcmodel=large\n")
f.write("-mcmodel=small\n")
else:
f.write("-mcmodel=medium\n")
if self.spec.satisfies("@2.1.2:") and not is_intel:
f.write("gfortran_f_flags = -ffree-line-length-none " + "-fdollar-ok\n")
if self.spec.target.family == "aarch64":
f.write("cmodel = large\n")
f.write("cmodel = small\n")
if self.spec.satisfies("@:1 processes=lcg.coll"):
copy(join_path(os.path.dirname(__file__), "sft1.coll"), "lcg.coll")