From bd0f906c88a38f5515b1cdc3d4bb543aec46c3f0 Mon Sep 17 00:00:00 2001 From: Seunghoon Lee Date: Sat, 19 Apr 2025 15:37:50 +0900 Subject: [PATCH] zluda use cdll --- modules/zluda_installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/zluda_installer.py b/modules/zluda_installer.py index 70a6476a0..71ac5b21c 100644 --- a/modules/zluda_installer.py +++ b/modules/zluda_installer.py @@ -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]