parent
5129d84304
commit
1522d1fac6
2 changed files with 43 additions and 0 deletions
25
var/spack/repos/builtin/packages/simde/package.py
Normal file
25
var/spack/repos/builtin/packages/simde/package.py
Normal 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')
|
18
var/spack/repos/builtin/packages/simde/sve-gcc.patch
Normal file
18
var/spack/repos/builtin/packages/simde/sve-gcc.patch
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue