summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-05-15 10:17:53 +0900
committerGitHub <noreply@github.com>2020-05-14 20:17:53 -0500
commitea818caca3589dbc0bba3e36e2d75ee7ef811b56 (patch)
treedd1a2c67f6d381005bd664493f5776d5dec3fbb9
parentb9874448716abe1e6331291dad057aa5c8f7d416 (diff)
downloadspack-ea818caca3589dbc0bba3e36e2d75ee7ef811b56.tar.gz
spack-ea818caca3589dbc0bba3e36e2d75ee7ef811b56.tar.bz2
spack-ea818caca3589dbc0bba3e36e2d75ee7ef811b56.tar.xz
spack-ea818caca3589dbc0bba3e36e2d75ee7ef811b56.zip
namd: build on aarch64. (#16639)
-rw-r--r--var/spack/repos/builtin/packages/namd/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/namd/package.py b/var/spack/repos/builtin/packages/namd/package.py
index d6f5b11b4a..a85dd7fd42 100644
--- a/var/spack/repos/builtin/packages/namd/package.py
+++ b/var/spack/repos/builtin/packages/namd/package.py
@@ -74,6 +74,7 @@ class Namd(MakefilePackage):
return '{0}-spack'.format(self.arch)
def edit(self, spec, prefix):
+ m64 = '-m64 ' if not spec.satisfies('arch=aarch64:') else ''
with working_dir('arch'):
with open('{0}.arch'.format(self.build_directory), 'w') as fh:
# this options are take from the default provided
@@ -81,12 +82,12 @@ class Namd(MakefilePackage):
# https://github.com/UIUC-PPL/charm/pull/2778
if self.spec.satisfies('^charmpp@:6.10.1'):
optims_opts = {
- 'gcc': '-m64 -O3 -fexpensive-optimizations \
+ 'gcc': m64 + '-O3 -fexpensive-optimizations \
-ffast-math -lpthread',
'intel': '-O2 -ip'}
else:
optims_opts = {
- 'gcc': '-m64 -O3 -fexpensive-optimizations \
+ 'gcc': m64 + '-O3 -fexpensive-optimizations \
-ffast-math',
'intel': '-O2 -ip'}