summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-11-19 13:49:04 +0900
committerGitHub <noreply@github.com>2020-11-18 22:49:04 -0600
commitc9aac3e221b847a7db231628a0c3cfe707046a85 (patch)
tree3a806903032eba5638dd4e808e3002ee28334165 /var
parenta680df8453cd07daad40f832b47d756b1e8a7f1b (diff)
downloadspack-c9aac3e221b847a7db231628a0c3cfe707046a85.tar.gz
spack-c9aac3e221b847a7db231628a0c3cfe707046a85.tar.bz2
spack-c9aac3e221b847a7db231628a0c3cfe707046a85.tar.xz
spack-c9aac3e221b847a7db231628a0c3cfe707046a85.zip
openloops: Fix for aarch64 (#19965)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openloops/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openloops/package.py b/var/spack/repos/builtin/packages/openloops/package.py
index 6ab081537c..2aa7490031 100644
--- a/var/spack/repos/builtin/packages/openloops/package.py
+++ b/var/spack/repos/builtin/packages/openloops/package.py
@@ -99,7 +99,11 @@ class Openloops(Package):
f.write('gfortran_f_flags = -ffree-line-length-none\n')
if self.spec.satisfies('@2.1.1') and not is_intel:
f.write('gfortran_f_flags = -ffree-line-length-none ' +
- '-fdollar-ok -mcmodel=medium\n')
+ '-fdollar-ok ')
+ if self.spec.target.family == 'aarch64':
+ f.write('-mcmodel=small\n')
+ else:
+ f.write('-mcmodel=medium\n')
if self.spec.satisfies('@:1.999.999 processes=lcg.coll'):
copy(join_path(os.path.dirname(__file__), 'sft1.coll'), 'lcg.coll')