mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
zluda use cdll
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user