openmx: Fix for aarch64 (#21367)
This commit is contained in:
parent
b6d52fa466
commit
6ae8d5c380
2 changed files with 14 additions and 0 deletions
11
var/spack/repos/builtin/packages/openmx/for_aarch64.patch
Normal file
11
var/spack/repos/builtin/packages/openmx/for_aarch64.patch
Normal file
|
@ -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
|
|
@ -25,6 +25,9 @@ class Openmx(MakefilePackage):
|
||||||
depends_on('fftw')
|
depends_on('fftw')
|
||||||
depends_on('blas')
|
depends_on('blas')
|
||||||
depends_on('lapack')
|
depends_on('lapack')
|
||||||
|
depends_on('sse2neon', when='target=aarch64:')
|
||||||
|
|
||||||
|
patch('for_aarch64.patch', when='@3.8 target=aarch64:')
|
||||||
|
|
||||||
parallel = False
|
parallel = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue