mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
skip rocm.conceal if rocm torch is installed
This commit is contained in:
+4
-2
@@ -977,8 +977,10 @@ def check_torch():
|
||||
if not args.ignore:
|
||||
sys.exit(1)
|
||||
if rocm.is_installed:
|
||||
if sys.platform == "win32": # CPU, DirectML, ZLUDA
|
||||
rocm.conceal()
|
||||
if sys.platform == "win32":
|
||||
import torch
|
||||
if torch.version.hip is None: # CPU, DirectML, ZLUDA
|
||||
rocm.conceal()
|
||||
elif rocm.is_wsl: # ROCm WSL
|
||||
rocm.preload_hsa_runtime()
|
||||
if args.version:
|
||||
|
||||
Reference in New Issue
Block a user