Update CARE package

This commit is contained in:
Adrien M. BERNEDE 2025-03-25 09:37:38 +01:00
parent d7301f66c9
commit b251e2e43f

View File

@ -89,6 +89,7 @@ class Care(CachedCMakePackage, CudaPackage, ROCmPackage):
variant( variant(
"implicit_conversions", "implicit_conversions",
default=False, default=False,
when="@:0.14",
description="Enable implicit" "conversions to/from raw pointers", description="Enable implicit" "conversions to/from raw pointers",
) )
variant("tests", default=False, description="Build tests") variant("tests", default=False, description="Build tests")
@ -227,12 +228,13 @@ def initconfig_hardware_entries(self):
if spec.satisfies("+rocm"): if spec.satisfies("+rocm"):
entries.append(cmake_cache_option("ENABLE_HIP", True)) entries.append(cmake_cache_option("ENABLE_HIP", True))
archs = self.spec.variants["amdgpu_target"].value if spec.satisfies("^blt@:0.6"):
if archs != "none": archs = self.spec.variants["amdgpu_target"].value
arch_str = ",".join(archs) if archs != "none":
entries.append( arch_str = ",".join(archs)
cmake_cache_string("HIP_HIPCC_FLAGS", "--amdgpu-target={0}".format(arch_str)) entries.append(
) cmake_cache_string("HIP_HIPCC_FLAGS", "--amdgpu-target={0}".format(arch_str))
)
else: else:
entries.append(cmake_cache_option("ENABLE_HIP", False)) entries.append(cmake_cache_option("ENABLE_HIP", False))