LWPVATS-4489 - [AMDSMI][LinuxBM] Implement smi-tool for calling rocm APIs using amdsmi wrapper

Signed-off-by: David Ceranic <David.Ceranic@amd.com>
Change-Id: I15900a6686e672291b2c0f9d54fd0b5b7e35e589
이 커밋은 다음에 포함됨:
David Ceranic
2022-11-22 17:52:42 +01:00
부모 238f885e14
커밋 ab928f3be5
2개의 변경된 파일1026개의 추가작업 그리고 3개의 파일을 삭제
+5 -3
파일 보기
@@ -1381,15 +1381,17 @@ def amdsmi_topo_get_link_type(
)
hops = ctypes.c_uint64()
type = AmdSmiIoLinkType()
#type = AmdSmiIoLinkType()
type = ctypes.c_uint32()
_check_res(
amdsmi_wrapper.amdsmi_topo_get_link_type(
device_handle_src, device_handle_dst, ctypes.byref(hops), type
#device_handle_src, device_handle_dst, ctypes.byref(hops), type
device_handle_src, device_handle_dst, ctypes.byref(hops), ctypes.byref(type)
)
)
return {"hops": hops.value, "type": type}
return {"hops": hops.value, "type": type.value}
def amdsmi_is_P2P_accessible(
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다. Diff 로드