Add target propagation for pika package (#34924)

This commit is contained in:
Auriane R 2023-01-16 17:57:50 +01:00 committed by GitHub
parent d156e2ee91
commit 9a25e21da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,23 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
depends_on("whip+rocm", when="@0.9: +rocm") depends_on("whip+rocm", when="@0.9: +rocm")
depends_on("whip+cuda", when="@0.9: +cuda") depends_on("whip+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)
)
depends_on(
"rocsolver amdgpu_target={0}".format(val),
when="@0.5: amdgpu_target={0}".format(val),
)
depends_on(
"rocblas amdgpu_target={0}".format(val), when="amdgpu_target={0}".format(val)
)
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))
for cxxstd in cxxstds: for cxxstd in cxxstds:
depends_on("boost cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0}".format(cxxstd)) depends_on("boost cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0}".format(cxxstd))
depends_on("fmt cxxstd={0}".format(cxxstd), when="@0.11: cxxstd={0}".format(cxxstd)) depends_on("fmt cxxstd={0}".format(cxxstd), when="@0.11: cxxstd={0}".format(cxxstd))