SWDEV-439576 - rocmsmi -> amdsmi

- Migrate to amdsmi library
- NOTE: raslib still uses rocmsmi
- Remove unused rocmsmi service
- Remove unused RDC client code
- Remove RSMI calls from protos/rdc.proto

Change-Id: Ifc34a264c506b0ec5792307ee56b34526268762d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Este commit está contenido en:
Galantsev, Dmitrii
2024-01-22 18:56:42 -06:00
padre 60467c45af
commit 9702d0f2d7
Se han modificado 53 ficheros con 774 adiciones y 2340 borrados
+4 -4
Ver fichero
@@ -37,13 +37,13 @@ class PrometheusReader(RdcReader):
if enable_pci_id == True:
try:
import sys, os
# Relaive path of rocm_smi to map gpu index to PCI id
# change smi_lib_path if the rocm_smi is installed in different folder
# Relaive path of amd_smi to map gpu index to PCI id
# change smi_lib_path if the amd_smi is installed in different folder
smi_lib_relative_path = "../../bin"
smi_lib_path = os.path.join(sys.path[0], smi_lib_relative_path)
if os.path.exists(smi_lib_path+"/rocm_smi.py"):
if os.path.exists(smi_lib_path+"/amd_smi.py"):
sys.path.append(smi_lib_path)
from rocm_smi import getBus, initializeRsmi
from amd_smi import getBus, initializeRsmi
initializeRsmi()
# Map between gpu indexes and PCIe bus addresses
self.index_to_bus_addr = {}