diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/rdc/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/rdc/package.py | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/rdc/package.py b/var/spack/repos/builtin/packages/rdc/package.py index 689b226b79..cadcf1d36c 100644 --- a/var/spack/repos/builtin/packages/rdc/package.py +++ b/var/spack/repos/builtin/packages/rdc/package.py @@ -11,7 +11,7 @@ class Rdc(CMakePackage): """ROCm Data Center Tool""" homepage = "https://github.com/RadeonOpenCompute/rdc" - url = "https://github.com/RadeonOpenCompute/rdc/archive/rocm-5.3.3.tar.gz" + url = "https://github.com/RadeonOpenCompute/rdc/archive/rocm-5.4.0.tar.gz" tags = ["rocm"] maintainers("srekolam", "renjithravindrankannath") @@ -24,6 +24,7 @@ class Rdc(CMakePackage): url = "https://github.com/RadeonOpenCompute/rdc/archive/rocm-{0}.tar.gz" return url.format(version) + version("5.4.0", sha256="268aab43e31045443b08a21aee8750da4cf04750c6f419ec171ec704d377a4e4") version("5.3.3", sha256="1bf1a02f305e3a629801e62584116a34eafbd1b26627837a2a8c10550fcf611b") version("5.3.0", sha256="ce9c85dad8e0c0b21e8e5938bf16f86a62dc5f6ded5f453c61acd43666634d6b") version("5.2.3", sha256="5ba060449bbf5e84979cb4c62eb1dac9b0e3eca45e930d2e20e7beaa87361b39") @@ -101,7 +102,8 @@ class Rdc(CMakePackage): depends_on("cmake@3.15:3.19.7", type="build", when="@:4.3.1") depends_on("cmake@3.15:", type="build", when="@4.5.0:") - depends_on("grpc@1.28.1+shared", type="build") + depends_on("grpc@1.28.1+shared", type="build", when="@:5.3") + depends_on("grpc@1.44.0+shared", when="@5.4.0:") depends_on("protobuf", type=("build", "link")) depends_on("libcap", type=("build", "link")) @@ -125,6 +127,7 @@ class Rdc(CMakePackage): "5.2.3", "5.3.0", "5.3.3", + "5.4.0", ]: depends_on("rocm-smi-lib@" + ver, type=("build", "link"), when="@" + ver) @@ -138,6 +141,7 @@ class Rdc(CMakePackage): "5.2.3", "5.3.0", "5.3.3", + "5.4.0", ]: depends_on("hsa-rocr-dev@" + ver, when="@" + ver) @@ -149,6 +153,19 @@ class Rdc(CMakePackage): "CMakeLists.txt", string=True, ) + if self.spec.satisfies("@5.4.0"): + filter_file( + "${ROCM_DIR}/${CMAKE_INSTALL_INCLUDEDIR}", + "{0}/include".format(self.spec["rocm-smi-lib"].prefix), + "CMakeLists.txt", + string=True, + ) + filter_file( + "${ROCM_DIR}/${CMAKE_INSTALL_LIBDIR}", + "{0}/lib".format(self.spec["rocm-smi-lib"].prefix), + "CMakeLists.txt", + string=True, + ) @classmethod def determine_version(cls, lib): |