hip: fix hip-tests error (#49563)

This commit is contained in:
Afzal Patel 2025-03-24 13:04:19 -04:00 committed by GitHub
parent 2c8afc5443
commit e15a3b0717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -343,7 +343,7 @@ class Hip(CMakePackage):
patch("0014-remove-compiler-rt-linkage-for-host.6.0.patch", when="@6.0")
patch("0014-remove-compiler-rt-linkage-for-host.6.1.patch", when="@6.1")
patch("0015-reverting-operator-mixup-fix-for-slate.patch", when="@5.6:6.0")
patch("0018-reverting-hipMemoryType-with-memoryType.patch", when="@6.0:")
patch("0018-reverting-hipMemoryType-with-memoryType.patch", when="@6.0:6.2")
# See https://github.com/ROCm/HIP/pull/3206
patch(
@ -563,6 +563,13 @@ def patch(self):
"clr/hipamd/hip-config-amd.cmake",
string=True,
)
if self.spec.satisfies("@6.3: +rocm"):
filter_file(
'"${ROCM_PATH}/llvm"',
self.spec["llvm-amdgpu"].prefix,
"clr/hipamd/hip-config-amd.cmake.in",
string=True,
)
perl = self.spec["perl"].command
if self.spec.satisfies("@:5.5"):