Closed xinyazhang closed 3 months ago
I wonder if we need this upstream as well. This section upstream: https://github.com/openai/triton/blob/main/python/triton/runtime/build.py#L42-L47 Doesn't have this is_hip section, though..
We'll need if upstream has the same problem in the ticket
Fix a problem reported by Pytorch CentOS docker creation failed due to Triton compilation, ImportError: libamdhip64.so.6
Analysis of this problem:
/opt/rocm/lib
in theirRUNPATH
. This leavesld
with only two options to find thelibamdhip64.so.6
file:LD_LIBRARY_PATH
and/etc/ld.so.conf
.LD_LIBRARY_PATH
may not contain/opt/rocm/lib
/etc/ld.so.conf.d/*
files are being deprecated by ROCM and not reliable.RUNPATH
is the new preferred way by ROCM to locate ROCM libraries, to support parallel installations.