summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-11-19 22:38:50 +0900
committerGitHub <noreply@github.com>2020-11-19 07:38:50 -0600
commit1522d1fac6dc106bdc02099e1d7917e4ff319c46 (patch)
tree0be610c545f0204925cbf0ab737572c15f9735fa /var
parent5129d84304035622d84ac61139625e4a88a686de (diff)
downloadspack-1522d1fac6dc106bdc02099e1d7917e4ff319c46.tar.gz
spack-1522d1fac6dc106bdc02099e1d7917e4ff319c46.tar.bz2
spack-1522d1fac6dc106bdc02099e1d7917e4ff319c46.tar.xz
spack-1522d1fac6dc106bdc02099e1d7917e4ff319c46.zip
simde: New package (#19992)
* simde: New package * remove 0.5.0.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/simde/package.py25
-rw-r--r--var/spack/repos/builtin/packages/simde/sve-gcc.patch18
2 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/simde/package.py b/var/spack/repos/builtin/packages/simde/package.py
new file mode 100644
index 0000000000..8929675a9e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/simde/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Simde(MesonPackage):
+ """The SIMDe header-only library provides fast, portable
+ implementations of SIMD intrinsics on hardware which doesn't
+ natively support them, such as calling SSE functions on ARM.
+ There is no performance penalty if the hardware supports the
+ native implementation (e.g., SSE/AVX runs at full speed on x86,
+ NEON on ARM, etc.)."""
+
+ homepage = "https://github.com/simd-everywhere/simde"
+ url = "https://github.com/simd-everywhere/simde/archive/v0.6.0.tar.gz"
+ git = "https://github.com/simd-everywhere/simde.git"
+
+ version('0.6.0', sha256='25a8b8c69c17ddc2f6209e86caa6b12d4ed91c0f841617efc56e5675eea84915')
+
+ patch('sve-gcc.patch', when='@0.6.0 %gcc')
+ conflicts('%gcc@8', when='target=a64fx',
+ msg='Internal compiler error with gcc8 and a64fx')
diff --git a/var/spack/repos/builtin/packages/simde/sve-gcc.patch b/var/spack/repos/builtin/packages/simde/sve-gcc.patch
new file mode 100644
index 0000000000..ea690e49de
--- /dev/null
+++ b/var/spack/repos/builtin/packages/simde/sve-gcc.patch
@@ -0,0 +1,18 @@
+diff --git a/simde/simde-features.h b/simde/simde-features.h
+index 2a3ce9c..5cfcf48 100644
+--- a/simde/simde-features.h
++++ b/simde/simde-features.h
+@@ -252,8 +252,10 @@
+
+ #if !defined(SIMDE_ARM_SVE_NATIVE) && !defined(SIMDE_ARM_SVE_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
+ #if defined(SIMDE_ARCH_ARM_SVE)
+- #define SIMDE_ARM_SVE_NATIVE
+- #include <arm_sve.h>
++ #if !defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(10,0,0)
++ #define SIMDE_ARM_SVE_NATIVE
++ #include <arm_sve.h>
++ #endif
+ #endif
+ #endif
+
+