summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-09-25 01:47:21 +0900
committerGitHub <noreply@github.com>2020-09-24 11:47:21 -0500
commit93e989316ec012cd1acc73ed9b491d904812f6bb (patch)
treec97417a2ed21839180ab6f6eff99d4e929a1db0c /var
parent92880919637ad539e12d3c4398b1a6e9c7a91393 (diff)
downloadspack-93e989316ec012cd1acc73ed9b491d904812f6bb.tar.gz
spack-93e989316ec012cd1acc73ed9b491d904812f6bb.tar.bz2
spack-93e989316ec012cd1acc73ed9b491d904812f6bb.tar.xz
spack-93e989316ec012cd1acc73ed9b491d904812f6bb.zip
lcals: Fix for aarch64 (#18918)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lcals/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lcals/package.py b/var/spack/repos/builtin/packages/lcals/package.py
index 9305c3dcb3..e5a39b5a05 100644
--- a/var/spack/repos/builtin/packages/lcals/package.py
+++ b/var/spack/repos/builtin/packages/lcals/package.py
@@ -46,6 +46,8 @@ class Lcals(MakefilePackage):
arch = 'MIC'
elif arch == 'x86_64' or arch == 'x86_32':
arch = 'x86'
+ elif arch == 'aarch64':
+ arch = 'aarch64'
else:
raise InstallError('unknown architecture.')
@@ -72,6 +74,10 @@ class Lcals(MakefilePackage):
cxxflags += '-DLCALS_PLATFORM_X86_AVX -DLCALS_COMPILER_GNU '
cxx_compile += '-Ofast -mavx -finline-functions'
' -finline-limit=10000 -std=c++11'
+ elif arch == 'aarch64':
+ cxxflags += '-DLCALS_COMPILER_GNU '
+ cxx_compile += '-Ofast -finline-functions'
+ ' -finline-limit=10000 -std=c++11'
cxxflags += self.compiler.openmp_flag
targets.append('LCALS_ARCH=')