giving up - set driver to 0.0.0 for amd

This commit is contained in:
henryruhs
2026-05-11 16:36:23 +02:00
parent 6ec9257e92
commit 2290e4ea57
2 changed files with 1 additions and 22 deletions
-18
View File
@@ -22,21 +22,6 @@ def create_static_library() -> Optional[ctypes.CDLL]:
return None
def define_driver_version() -> ctypes.Structure:
return type('AMDSMI_VERSION', (ctypes.Structure,),
{
'_pack_': 1,
'_fields_':
[
('major', ctypes.c_uint32),
('minor', ctypes.c_uint32),
('release', ctypes.c_uint32),
('padding', ctypes.c_ubyte * 4),
('build', ctypes.POINTER(ctypes.c_char))
]
})()
def define_product_info() -> ctypes.Structure:
return type('AMDSMI_ASIC_INFO', (ctypes.Structure,),
{
@@ -94,9 +79,6 @@ def init_ctypes(amd_smi : ctypes.CDLL) -> ctypes.CDLL:
amd_smi.amdsmi_shut_down.argtypes = []
amd_smi.amdsmi_shut_down.restype = ctypes.c_uint32
amd_smi.amdsmi_get_lib_version.argtypes = [ ctypes.c_void_p ]
amd_smi.amdsmi_get_lib_version.restype = ctypes.c_uint32
amd_smi.amdsmi_get_socket_handles.argtypes = [ ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_void_p) ]
amd_smi.amdsmi_get_socket_handles.restype = ctypes.c_uint32