summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com>2021-01-29 03:20:18 +0900
committerGitHub <noreply@github.com>2021-01-28 10:20:18 -0800
commit6ae8d5c380c1f42094b05d38be26b03650aafb39 (patch)
tree852bd3fd04ad628d6395802a2f6114fa2574097c /var
parentb6d52fa4667b4139f0d4a104e145bac49f4339e5 (diff)
downloadspack-6ae8d5c380c1f42094b05d38be26b03650aafb39.tar.gz
spack-6ae8d5c380c1f42094b05d38be26b03650aafb39.tar.bz2
spack-6ae8d5c380c1f42094b05d38be26b03650aafb39.tar.xz
spack-6ae8d5c380c1f42094b05d38be26b03650aafb39.zip
openmx: Fix for aarch64 (#21367)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openmx/for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/openmx/package.py3
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmx/for_aarch64.patch b/var/spack/repos/builtin/packages/openmx/for_aarch64.patch
new file mode 100644
index 0000000000..33a80bf8ab
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openmx/for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/source/Krylov.c.bak 2016-03-27 15:53:28.000000000 +0900
++++ spack-src/source/Krylov.c 2021-01-28 15:31:32.660274698 +0900
+@@ -29,7 +29,7 @@
+ #ifdef nosse
+ #include "mimic_sse.h"
+ #else
+-#include <emmintrin.h>
++#include <sse2neon.h>
+ #endif
+
+ #ifdef kcomp
diff --git a/var/spack/repos/builtin/packages/openmx/package.py b/var/spack/repos/builtin/packages/openmx/package.py
index 89e2ad40be..f6a313c27b 100644
--- a/var/spack/repos/builtin/packages/openmx/package.py
+++ b/var/spack/repos/builtin/packages/openmx/package.py
@@ -25,6 +25,9 @@ class Openmx(MakefilePackage):
depends_on('fftw')
depends_on('blas')
depends_on('lapack')
+ depends_on('sse2neon', when='target=aarch64:')
+
+ patch('for_aarch64.patch', when='@3.8 target=aarch64:')
parallel = False