mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-27 20:02:15 +00:00
Strip AMD libraries bundled with Python package due to libonnxruntime_providers_rocm.so change (#9679)
* remove AMD library depedence from libonnxruntime_providers_rocm.so * fix flake error * remove rocm dependency from original library as well
This commit is contained in:
parent
acb5459268
commit
e6f0fdd653
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -163,9 +163,11 @@ try:
|
|||
check=True, stdout=subprocess.PIPE, universal_newlines=True)
|
||||
cuda_dependencies = ['libcublas.so', 'libcublasLt.so', 'libcudnn.so', 'libcudart.so',
|
||||
'libcurand.so', 'libcufft.so', 'libnvToolsExt.so']
|
||||
rocm_dependencies = ['librccl.so', 'libamdhip64.so', 'librocblas.so', 'libMIOpen.so',
|
||||
'libhsa-runtime64.so', 'libhsakmt.so']
|
||||
args = ['patchelf', '--debug']
|
||||
for line in result.stdout.split('\n'):
|
||||
for dependency in cuda_dependencies:
|
||||
for dependency in (cuda_dependencies + rocm_dependencies):
|
||||
if dependency in line:
|
||||
if dependency not in to_preload:
|
||||
to_preload_cuda.append(line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue