diff --git a/projects/amdsmi/py-interface/amdsmi_interface.py b/projects/amdsmi/py-interface/amdsmi_interface.py index 4258614956..986072753c 100644 --- a/projects/amdsmi/py-interface/amdsmi_interface.py +++ b/projects/amdsmi/py-interface/amdsmi_interface.py @@ -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")) diff --git a/projects/amdsmi/py-interface/amdsmi_wrapper.py b/projects/amdsmi/py-interface/amdsmi_wrapper.py index 77f9a5cea7..dde097cdbf 100644 --- a/projects/amdsmi/py-interface/amdsmi_wrapper.py +++ b/projects/amdsmi/py-interface/amdsmi_wrapper.py @@ -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")) diff --git a/projects/amdsmi/tools/generator.py b/projects/amdsmi/tools/generator.py index 37d0014d1d..fbf29bfa63 100644 --- a/projects/amdsmi/tools/generator.py +++ b/projects/amdsmi/tools/generator.py @@ -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"))