mirror of
https://github.com/vladmandic/automatic
synced 2026-09-06 21:10:45 +02:00
zluda catch attributeerror
This commit is contained in:
@@ -47,8 +47,11 @@ class Core(ZLUDALibrary):
|
||||
internal.zluda_get_hip_object.restype = ZLUDAResult
|
||||
internal.zluda_get_hip_object.argtypes = [ctypes.c_void_p, ctypes.c_int]
|
||||
|
||||
internal.zluda_get_nightly_flag.restype = ctypes.c_int
|
||||
internal.zluda_get_nightly_flag.argtypes = []
|
||||
try:
|
||||
internal.zluda_get_nightly_flag.restype = ctypes.c_int
|
||||
internal.zluda_get_nightly_flag.argtypes = []
|
||||
except AttributeError:
|
||||
internal.zluda_get_nightly_flag = lambda: 0
|
||||
|
||||
super().__init__(internal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user