mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix zluda torch patcher
This commit is contained in:
+4
-1
@@ -954,7 +954,10 @@ def patch_zluda():
|
||||
if zluda_path is None:
|
||||
log.warning('Failed to automatically patch torch with ZLUDA. Could not find ZLUDA from PATH.')
|
||||
return
|
||||
venv_dir = os.environ.get('VENV_DIR', os.path.dirname(shutil.which('python')))
|
||||
python_dir = os.path.dirname(shutil.which('python'))
|
||||
if shutil.which('conda') is None:
|
||||
python_dir = os.path.dirname(python_dir)
|
||||
venv_dir = os.environ.get('VENV_DIR', python_dir)
|
||||
dlls_to_patch = {
|
||||
'cublas.dll': 'cublas64_11.dll',
|
||||
#'cudnn.dll': 'cudnn64_8.dll',
|
||||
|
||||
Reference in New Issue
Block a user