From 52e538e1d98a5cc5d90b04fa65ad086a9412af4d Mon Sep 17 00:00:00 2001 From: renjithravindrankannath <94420380+renjithravindrankannath@users.noreply.github.com> Date: Mon, 3 Oct 2022 04:13:52 -0700 Subject: [PATCH] rvs binary path updated for 5.2 rocm release (#32892) --- .../repos/builtin/packages/rocm-validation-suite/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/rocm-validation-suite/package.py b/var/spack/repos/builtin/packages/rocm-validation-suite/package.py index 6e8392a885..5d2b3b0d4b 100644 --- a/var/spack/repos/builtin/packages/rocm-validation-suite/package.py +++ b/var/spack/repos/builtin/packages/rocm-validation-suite/package.py @@ -146,10 +146,14 @@ def setup_build_environment(self, build_env): depends_on("hip-rocclr@" + ver, when="@" + ver) def patch(self): - if "@4.5.0:" in self.spec: + if "@4.5.0:5.1" in self.spec: filter_file( "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True ) + elif "@5.2.0:" in self.spec: + filter_file( + "@ROCM_PATH@/bin", self.spec.prefix.bin, "rvs/conf/deviceid.sh.in", string=True + ) def cmake_args(self): args = [