update hip-rocclr recipe and fix dangling pointer in rocm-smi-lib (#24603)
This commit is contained in:
parent
a2ebeb8e76
commit
aa9f560128
@ -59,65 +59,34 @@ def url_for_version(self, version):
|
|||||||
placement='opencl-on-vdi',
|
placement='opencl-on-vdi',
|
||||||
when='@3.5.0')
|
when='@3.5.0')
|
||||||
|
|
||||||
resource(name='opencl-on-vdi',
|
# Add opencl sources thru the below
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-3.7.0.tar.gz',
|
for d_version, d_shasum in [
|
||||||
sha256='283e1dfe4c3d2e8af4d677ed3c20e975393cdb0856e3ccd77b9c7ed2a151650b',
|
('4.2.0', '18133451948a83055ca5ebfb5ba1bd536ed0bcb611df98829f1251a98a38f730'),
|
||||||
expand=True,
|
('4.1.0', '0729e6c2adf1e3cf649dc6e679f9cb936f4f423f4954ad9852857c0a53ef799c'),
|
||||||
destination='',
|
('4.0.0', 'd43ea5898c6b9e730b5efabe8367cc136a9260afeac5d0fe85b481d625dd7df1'),
|
||||||
placement='opencl-on-vdi',
|
('3.10.0', '3aa9dc5a5f570320b04b35ee129ce9ff21062d2770df934c6c307913f975e93d'),
|
||||||
when='@3.7.0')
|
('3.9.0', '286ff64304905384ce524cd8794c28aee216befd6c9267d4187a12e5a21e2daf'),
|
||||||
|
('3.8.0', '7f75dd1abf3d771d554b0e7b0a7d915ab5f11a74962c92b013ee044a23c1270a'),
|
||||||
|
('3.7.0', '283e1dfe4c3d2e8af4d677ed3c20e975393cdb0856e3ccd77b9c7ed2a151650b')
|
||||||
|
]:
|
||||||
|
resource(
|
||||||
|
name='opencl-on-vdi',
|
||||||
|
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-{0}.tar.gz'.format(d_version),
|
||||||
|
sha256=d_shasum,
|
||||||
|
expand=True,
|
||||||
|
destination='',
|
||||||
|
placement='opencl-on-vdi',
|
||||||
|
when='@{0}'.format(d_version)
|
||||||
|
)
|
||||||
|
|
||||||
resource(name='opencl-on-vdi',
|
resource(
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-3.8.0.tar.gz',
|
name='opencl-on-vdi',
|
||||||
sha256='7f75dd1abf3d771d554b0e7b0a7d915ab5f11a74962c92b013ee044a23c1270a',
|
git='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime.git',
|
||||||
expand=True,
|
destination='',
|
||||||
destination='',
|
placement='opencl-on-vdi',
|
||||||
placement='opencl-on-vdi',
|
branch='main',
|
||||||
when='@3.8.0')
|
when='@master'
|
||||||
|
)
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-3.9.0.tar.gz',
|
|
||||||
sha256='286ff64304905384ce524cd8794c28aee216befd6c9267d4187a12e5a21e2daf',
|
|
||||||
expand=True,
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@3.9.0')
|
|
||||||
|
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-3.10.0.tar.gz',
|
|
||||||
sha256='3aa9dc5a5f570320b04b35ee129ce9ff21062d2770df934c6c307913f975e93d',
|
|
||||||
expand=True,
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@3.10.0')
|
|
||||||
|
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-4.0.0.tar.gz',
|
|
||||||
sha256='d43ea5898c6b9e730b5efabe8367cc136a9260afeac5d0fe85b481d625dd7df1',
|
|
||||||
expand=True,
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@4.0.0')
|
|
||||||
|
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-4.1.0.tar.gz',
|
|
||||||
sha256='0729e6c2adf1e3cf649dc6e679f9cb936f4f423f4954ad9852857c0a53ef799c',
|
|
||||||
expand=True,
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@4.1.0')
|
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-4.2.0.tar.gz',
|
|
||||||
sha256='18133451948a83055ca5ebfb5ba1bd536ed0bcb611df98829f1251a98a38f730',
|
|
||||||
expand=True,
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@4.2.0')
|
|
||||||
resource(name='opencl-on-vdi',
|
|
||||||
git='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime.git',
|
|
||||||
destination='',
|
|
||||||
placement='opencl-on-vdi',
|
|
||||||
when='@master')
|
|
||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def deploy_missing_files(self):
|
def deploy_missing_files(self):
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
@ -45,3 +46,6 @@ def post_install(self):
|
|||||||
shutil.rmtree(self.prefix.lib)
|
shutil.rmtree(self.prefix.lib)
|
||||||
install_tree(self.prefix.rocm_smi, self.prefix)
|
install_tree(self.prefix.rocm_smi, self.prefix)
|
||||||
shutil.rmtree(self.prefix.rocm_smi)
|
shutil.rmtree(self.prefix.rocm_smi)
|
||||||
|
os.remove(join_path(self.prefix.bin, 'rsmiBindings.py'))
|
||||||
|
symlink('../bindings/rsmiBindings.py',
|
||||||
|
join_path(self.prefix.bin, 'rsmiBindings.py'))
|
||||||
|
Loading…
Reference in New Issue
Block a user