forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the double loading problem of libamdhip64.so.
PyTorch wheel has its own bundled libamdhip64.so, and the original logic has problems detecting this shared object file because it can be installed at any place with venv/DT_RUNPATH/LD_LIBRARY_PATH. Now Triton enumerates the address space with dl_iterate_phdr, and prefer the libamdhip64.so that is already loaded into address space over everything other than TRITON_LIBHIP_PATH.
- Loading branch information
1 parent
d9fc9fe
commit a189c11
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters