enzo: fix for aarch64 (#21715)

This commit is contained in:
Tomoyasu Nojiri 2021-02-18 19:14:18 +09:00 committed by GitHub
parent 54ee955b76
commit 93d9bed192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -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"

View File

@ -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:')