Add whip 0.1.0 and use in pika (#35073)

* Add whip 0.1.0
* Make pika depend on whip@0.1.0

Co-authored-by: msimberg <msimberg@users.noreply.github.com>
This commit is contained in:
Mikael Simberg 2023-01-24 19:20:10 +01:00 committed by GitHub
parent 9a0884bfed
commit 909a5b1d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -102,13 +102,14 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
depends_on("rocsolver", when="@0.5: +rocm")
depends_on("tracy-client", when="+tracy")
conflicts("tracy-client@0.9:", when="@:0.9")
depends_on("whip+rocm", when="@0.9: +rocm")
depends_on("whip+cuda", when="@0.9: +cuda")
depends_on("whip@0.1: +rocm", when="@0.9: +rocm")
depends_on("whip@0.1: +cuda", when="@0.9: +cuda")
with when("+rocm"):
for val in ROCmPackage.amdgpu_targets:
depends_on(
"whip amdgpu_target={0}".format(val), when="@0.9: amdgpu_target={0}".format(val)
"whip@0.1: amdgpu_target={0}".format(val),
when="@0.9: amdgpu_target={0}".format(val),
)
depends_on(
"rocsolver amdgpu_target={0}".format(val),
@ -120,7 +121,9 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
with when("+cuda"):
for val in CudaPackage.cuda_arch_values:
depends_on("whip cuda_arch={0}".format(val), when="@0.9: cuda_arch={0}".format(val))
depends_on(
"whip@0.1: cuda_arch={0}".format(val), when="@0.9: cuda_arch={0}".format(val)
)
for cxxstd in cxxstds:
depends_on("boost cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0}".format(cxxstd))

View file

@ -16,6 +16,7 @@ class Whip(CMakePackage, CudaPackage, ROCmPackage):
maintainers = ["msimberg", "rasolca"]
version("main", branch="main")
version("0.1.0", sha256="5d557794f4afc8332fc660948a342f69e22bc9e5d575ffb3e3944cf526db5ec9")
depends_on("cmake@3.22:", type="build")