Add numbers to .so because wheels dont allow symlinks (#820)

Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
Galantsev, Dmitrii
2025-11-06 03:57:31 -06:00
committed by GitHub
parent aac09912ec
commit 8bdf951d32
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5515,7 +5515,7 @@ def amdsmi_get_rocm_version()-> Tuple[bool, str]:
# `amdsmi_interface.py` is located in
# `_rocm_sdk_core/share/amd_smi/amdsmi`, libraries are in
# `_rocm_sdk_core/lib`.
librocm_core_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/librocm-core.so"
librocm_core_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/librocm-core.so.1"
possible_locations.append(librocm_core_path)
# 1.
rocm_path = os.getenv("ROCM_HOME", os.getenv("ROCM_PATH"))
+1 -1
View File
@@ -184,7 +184,7 @@ def find_smi_library():
err = OSError("Could not load libamd_smi.so")
possible_locations = []
# 0.
libamd_smi_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/libamd_smi.so"
libamd_smi_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/libamd_smi.so.26"
possible_locations.append(libamd_smi_path)
# 1.
rocm_path = os.getenv("ROCM_HOME", os.getenv("ROCM_PATH"))
+1 -1
View File
@@ -199,7 +199,7 @@ def find_smi_library():
err = OSError("Could not load {library_name}")
possible_locations = []
# 0.
libamd_smi_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/libamd_smi.so"
libamd_smi_path = Path(__file__).resolve().parent.parent.parent.parent / "lib/libamd_smi.so.26"
possible_locations.append(libamd_smi_path)
# 1.
rocm_path = os.getenv("ROCM_HOME", os.getenv("ROCM_PATH"))