summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2021-10-01 08:06:12 -0700
committerGitHub <noreply@github.com>2021-10-01 17:06:12 +0200
commit177fe731b127926c04b6f555a4fc10a2a580c6a5 (patch)
tree8bca42576e8a5c7f98e21d9a7bef53c9201d1f62
parent6b96486d4258121c622c6736a90ca611a27e08ba (diff)
downloadspack-177fe731b127926c04b6f555a4fc10a2a580c6a5.tar.gz
spack-177fe731b127926c04b6f555a4fc10a2a580c6a5.tar.bz2
spack-177fe731b127926c04b6f555a4fc10a2a580c6a5.tar.xz
spack-177fe731b127926c04b6f555a4fc10a2a580c6a5.zip
llvm-openmp: 12.0.1 (#26320)
Add the latest LLVM OpenMP release. This one compiles for aarch64/M1 on mac.
-rwxr-xr-xvar/spack/repos/builtin/packages/llvm-openmp/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-openmp/package.py b/var/spack/repos/builtin/packages/llvm-openmp/package.py
index d7534ff453..41ae794211 100755
--- a/var/spack/repos/builtin/packages/llvm-openmp/package.py
+++ b/var/spack/repos/builtin/packages/llvm-openmp/package.py
@@ -13,6 +13,7 @@ class LlvmOpenmp(CMakePackage):
homepage = "https://openmp.llvm.org/"
url = "https://releases.llvm.org/9.0.0/openmp-9.0.0.src.tar.xz"
+ version('12.0.1', sha256='60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091')
version('9.0.0', sha256='9979eb1133066376cc0be29d1682bc0b0e7fb541075b391061679111ae4d3b5b')
version('8.0.0', sha256='f7b1705d2f16c4fc23d6531f67d2dd6fb78a077dd346b02fed64f4b8df65c9d5')
@@ -21,6 +22,14 @@ class LlvmOpenmp(CMakePackage):
variant('multicompat', default=False,
description="Support gomp and the Intel openMP runtime library.")
+ def url_for_version(self, version):
+ if version >= Version('9.0.1'):
+ url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-{0}/openmp-{0}.src.tar.xz"
+ else:
+ url = "https://releases.llvm.org/{0}/openmp-{0}.src.tar.xz"
+
+ return url.format(version.dotted)
+
def cmake_args(self):
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as