From 6ae8d5c380c1f42094b05d38be26b03650aafb39 Mon Sep 17 00:00:00 2001 From: Tomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com> Date: Fri, 29 Jan 2021 03:20:18 +0900 Subject: openmx: Fix for aarch64 (#21367) --- var/spack/repos/builtin/packages/openmx/for_aarch64.patch | 11 +++++++++++ var/spack/repos/builtin/packages/openmx/package.py | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 var/spack/repos/builtin/packages/openmx/for_aarch64.patch (limited to 'var') 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 ++#include + #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 -- cgit v1.2.3-70-g09d2