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
[ROCm/amdsmi commit: ab928f3be5]
Ta zmiana jest zawarta w:
%! (template.HTML=
David Ceranic)złożyło 2022-12-09 16:16:41 +01:00
1 rodzic
da7e846b04
złożenie
90f19f35e7
2 plików zmienionych
+1026
-3
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -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(
|
||||
|
||||
Plik różnic wstrzymany, ponieważ jest za duży.
Załaduj różnice
Reference in new issue
Zablokuj użytkownika