diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/miopen-hip/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/miopen-hip/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/miopen-hip/package.py b/var/spack/repos/builtin/packages/miopen-hip/package.py index 14cad7bcf5..155b04aa7b 100644 --- a/var/spack/repos/builtin/packages/miopen-hip/package.py +++ b/var/spack/repos/builtin/packages/miopen-hip/package.py @@ -3,6 +3,7 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import re from spack.package import * from spack.pkg.builtin.boost import Boost @@ -16,6 +17,7 @@ class MiopenHip(CMakePackage): url = "https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-5.1.3.tar.gz" maintainers = ['srekolam', 'arjun-raj-kuppala'] + libraries = ['libMIOpen'] version('5.1.3', sha256='510461f5c5bdbcf8dc889099d1e5960b9f84bd845a9fc9154588a9898c701c1d') version('5.1.0', sha256='bb50201334d68addf153b84b88ab803027c4913d71bdbda6f5ccde3f672f6fdd') @@ -76,6 +78,18 @@ class MiopenHip(CMakePackage): else: return spec['llvm-amdgpu'].prefix.lib + @classmethod + def determine_version(cls, lib): + match = re.search(r'lib\S*\.so\.\d+\.\d+\.(\d)(\d\d)(\d\d)', + lib) + if match: + ver = '{0}.{1}.{2}'.format(int(match.group(1)), + int(match.group(2)), + int(match.group(3))) + else: + ver = None + return ver + def cmake_args(self): spec = self.spec |