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

Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>

[ROCm/amdsmi commit: 8bdf951d32]
This commit is contained in:
Galantsev, Dmitrii
2025-11-06 03:57:31 -06:00
gecommit door GitHub
bovenliggende 4e8d89306e
commit 181659ea1f
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
@@ -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"))
@@ -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
Bestand weergeven
@@ -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"))