diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/hip/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py index 4d7045772b..8bf5366857 100644 --- a/var/spack/repos/builtin/packages/hip/package.py +++ b/var/spack/repos/builtin/packages/hip/package.py @@ -82,7 +82,10 @@ class Hip(CMakePackage): for name in ('llvm-amdgpu', 'hsa-rocr-dev', 'rocminfo', 'rocm-device-libs')) mydict['rocm-path'] = self.spec.prefix - device_lib_path = mydict['rocm-device-libs'].amdgcn.bitcode + if '@:3.8.0' in self.spec: + device_lib_path = mydict['rocm-device-libs'].lib + else: + device_lib_path = mydict['rocm-device-libs'].amdgcn.bitcode mydict['device_lib_path'] = device_lib_path return mydict |