diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py index 0dfae26717e..57e1e80d0c0 100644 --- a/var/spack/repos/builtin/packages/hip/package.py +++ b/var/spack/repos/builtin/packages/hip/package.py @@ -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"):