summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com>2021-02-18 19:14:18 +0900
committerGitHub <noreply@github.com>2021-02-18 11:14:18 +0100
commit93d9bed192d3d2f83840e81bdde57abb718708da (patch)
tree1c189b8a45d06b3a7d7d6d306a9ba8768b49fdc3 /var
parent54ee955b76e69d39cedbfb5f0cb989b0057cae81 (diff)
downloadspack-93d9bed192d3d2f83840e81bdde57abb718708da.tar.gz
spack-93d9bed192d3d2f83840e81bdde57abb718708da.tar.bz2
spack-93d9bed192d3d2f83840e81bdde57abb718708da.tar.xz
spack-93d9bed192d3d2f83840e81bdde57abb718708da.zip
enzo: fix for aarch64 (#21715)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/enzo/for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/enzo/package.py3
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/enzo/for_aarch64.patch b/var/spack/repos/builtin/packages/enzo/for_aarch64.patch
new file mode 100644
index 0000000000..6e1672bda0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/enzo/for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/src/enzo/FindSuperSourceByPosition.C.bak 2019-09-19 21:35:51.000000000 +0900
++++ spack-src/src/enzo/FindSuperSourceByPosition.C 2021-02-17 11:58:28.574066786 +0900
+@@ -1,7 +1,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+-#include <xmmintrin.h>
++#include <sse2neon.h>
+ #include "ErrorExceptions.h"
+ #include "macros_and_parameters.h"
+ #include "typedefs.h"
diff --git a/var/spack/repos/builtin/packages/enzo/package.py b/var/spack/repos/builtin/packages/enzo/package.py
index 69ddd5a3f0..6220d6e46a 100644
--- a/var/spack/repos/builtin/packages/enzo/package.py
+++ b/var/spack/repos/builtin/packages/enzo/package.py
@@ -18,6 +18,9 @@ class Enzo(MakefilePackage):
depends_on('mpi')
depends_on('hdf5~mpi')
+ depends_on('sse2neon', when='target=aarch64:')
+
+ patch('for_aarch64.patch', when='target=aarch64:')
# https://github.com/enzo-project/enzo-dev/pull/158
patch('https://github.com/enzo-project/enzo-dev/commit/0191ff5ad9ad2c7639d44823e84cd0115e7a2970.patch', sha256='01328a5f5fe72ac5af31661deb6891ea160264b67a470d6ce91b71b001845810', when='@2.6.1 ^hdf5@1.12.0:')