fix typos

This commit is contained in:
Vladimir Mandic
2024-06-16 17:00:35 -04:00
parent 60376ebe2f
commit a1f53add94
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1047,7 +1047,7 @@ def check_ui(ver):
if ver['branch'] == ver['ui']:
log.debug(f'Branch synchronized: {ver["branch"]}')
else:
log.debug(f'Branch synch failed: sdnext={ver["branch"]} ui={ver["ui"]}')
log.debug(f'Branch sync failed: sdnext={ver["branch"]} ui={ver["ui"]}')
except Exception as e:
log.debug(f'Branch switch: {e}')
os.chdir(cwd)
+1 -1
View File
@@ -175,7 +175,7 @@ def set_cuda_sync_mode(mode):
return
try:
import ctypes
log.info(f'Set cuda synch: mode={mode}')
log.info(f'Set cuda sync: mode={mode}')
torch.cuda.set_device(torch.device(get_optimal_device_name()))
ctypes.CDLL('libcudart.so').cudaSetDeviceFlags({'auto': 0, 'spin': 1, 'yield': 2, 'block': 4}[mode])
except Exception: