sirius: simplify hip architectures, fix umpire dependency (#39776)

This commit is contained in:
Simon Pintarelli 2023-09-06 23:46:38 +02:00 committed by GitHub
parent 865c8b606c
commit 1c0dbab821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ class Sirius(CMakePackage, CudaPackage, ROCmPackage):
depends_on("costa+shared", when="@7.3.2:")
with when("@7.5: +memory_pool"):
depends_on("umpire")
depends_on("umpire~cuda~rocm", when="~cuda~rocm")
depends_on("umpire+cuda~device_alloc", when="+cuda")
depends_on("umpire+rocm~device_alloc", when="+rocm")
@ -347,12 +347,6 @@ def cmake_args(self):
if "+rocm" in spec:
archs = ",".join(self.spec.variants["amdgpu_target"].value)
args.extend(
[
self.define("HIP_ROOT_DIR", spec["hip"].prefix),
self.define("HIP_HCC_FLAGS", "--amdgpu-target={0}".format(archs)),
self.define("HIP_CXX_COMPILER", self.spec["hip"].hipcc),
]
)
args.extend([self.define("CMAKE_HIP_ARCHITECTURES", archs)])
return args