simde: New package (#19992)

* simde: New package

* remove 0.5.0.
This commit is contained in:
Toyohisa Kameyama 2020-11-19 22:38:50 +09:00 committed by GitHub
parent 5129d84304
commit 1522d1fac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

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

View file

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