diff options
author | renjithravindrankannath <94420380+renjithravindrankannath@users.noreply.github.com> | 2023-10-24 15:30:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 15:30:02 -0700 |
commit | 50f25964cf5962ea9841640354d17ccc3bfcef16 (patch) | |
tree | 16076cf09606b664b21b704e7a77dfc41eb65ff3 /var | |
parent | 95558d67aee2fe5deda4c1ad37eeed0b0fb382f3 (diff) | |
download | spack-50f25964cf5962ea9841640354d17ccc3bfcef16.tar.gz spack-50f25964cf5962ea9841640354d17ccc3bfcef16.tar.bz2 spack-50f25964cf5962ea9841640354d17ccc3bfcef16.tar.xz spack-50f25964cf5962ea9841640354d17ccc3bfcef16.zip |
Updating rvs binary path. (#40604)
* Updating rvs binary path
* Updating spec check as per the recommendation
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/rocm-validation-suite/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
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 dfefd8ef75..adad90b646 100644 --- a/var/spack/repos/builtin/packages/rocm-validation-suite/package.py +++ b/var/spack/repos/builtin/packages/rocm-validation-suite/package.py @@ -179,14 +179,18 @@ class RocmValidationSuite(CMakePackage): depends_on("hip-rocclr@" + ver, when="@" + ver) def patch(self): - if "@4.5.0:5.1" in self.spec: + if self.spec.satisfies("@4.5:5.1"): filter_file( "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True ) - elif "@5.2.0:" in self.spec: + elif self.spec.satisfies("@5.2:5.4"): filter_file( "@ROCM_PATH@/bin", self.spec.prefix.bin, "rvs/conf/deviceid.sh.in", string=True ) + elif self.spec.satisfies("@5.5:"): + filter_file( + "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True + ) def cmake_args(self): args = [ |