zluda use cdll

This commit is contained in:
Seunghoon Lee
2025-04-19 15:37:50 +09:00
parent d5b3662e21
commit bd0f906c88
+3 -3
View File
@@ -34,14 +34,14 @@ class ZLUDAResult(ctypes.Structure):
class ZLUDALibrary:
internal: ctypes.WinDLL
internal: ctypes.CDLL
def __init__(self, internal: ctypes.WinDLL):
def __init__(self, internal: ctypes.CDLL):
self.internal = internal
class Core(ZLUDALibrary):
def __init__(self, internal: ctypes.WinDLL):
def __init__(self, internal: ctypes.CDLL):
internal.zluda_get_hip_object.restype = ZLUDAResult
internal.zluda_get_hip_object.argtypes = [ctypes.c_void_p, ctypes.c_int]