Add HPX 1.9.0 (#37426)

This commit is contained in:
Mikael Simberg 2023-05-08 12:24:02 +02:00 committed by GitHub
parent d5d596a851
commit 273bccbccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
"""C++ runtime system for parallel and distributed applications."""
homepage = "https://hpx.stellar-group.org/"
url = "https://github.com/STEllAR-GROUP/hpx/archive/1.2.1.tar.gz"
url = "https://github.com/STEllAR-GROUP/hpx/archive/v0.0.0.tar.gz"
git = "https://github.com/STEllAR-GROUP/hpx.git"
maintainers("msimberg", "albestro", "teonnik", "hkaiser")
@ -22,6 +22,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
version("master", branch="master")
version("stable", tag="stable")
version("1.9.0", sha256="2a8dca78172fbb15eae5a5e9facf26ab021c845f9c09e61b1912e6cf9e72915a")
version("1.8.1", sha256="2fc4c10f55e2e6bcdc6f6ff950e26c6d8e218e138fdbd885ee71ccf5c5549054")
version("1.8.0", sha256="93f147ab7cf0ab4161f37680ea720d3baeb86540a95382f2fb591645b2a9b135")
version("1.7.1", sha256="008a0335def3c551cba31452eda035d7e914e3e4f77eec679eea070ac71bd83b")
@ -125,6 +126,11 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
# Only ROCm or CUDA maybe be enabled at once
conflicts("+rocm", when="+cuda")
# Restrictions for 1.9.X
with when("@1.9:"):
conflicts("%gcc@:8")
conflicts("%clang@:9")
# Restrictions for 1.8.X
with when("@1.8:"):
conflicts("cxxstd=14")
@ -188,6 +194,11 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
patch("git_external.patch", when="@1.3.0 instrumentation=apex")
patch("mimalloc_no_version_requirement.patch", when="@:1.8.0 malloc=mimalloc")
def url_for_version(self, version):
if version >= Version("1.9.0"):
return "https://github.com/STEllAR-GROUP/hpx/archive/v{}.tar.gz".format(version)
return "https://github.com/STEllAR-GROUP/hpx/archive/{}.tar.gz".format(version)
def instrumentation_args(self):
args = []
for value in self.instrumentation_values: