mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-19 19:00:21 +08:00
added rocm and hip hiding for certain nodes getting errors under zluda
This commit is contained in:
parent
88eae2b0d1
commit
df418fc3fd
@ -1,3 +1,15 @@
|
|||||||
|
# hide rocm and hip
|
||||||
|
import os
|
||||||
|
os.environ.pop("ROCM_HOME",None)
|
||||||
|
os.environ.pop("HIP_HOME",None)
|
||||||
|
os.environ.pop("ROCM_VERSION",None)
|
||||||
|
paths=os.environ["PATH"].split(";")
|
||||||
|
paths_no_rocm=[]
|
||||||
|
for path_ in paths:
|
||||||
|
if "rocm" not in path_.lower():
|
||||||
|
paths_no_rocm.append(path_)
|
||||||
|
os.environ["PATH"]=";".join(paths_no_rocm)
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
if torch.cuda.get_device_name().endswith("[ZLUDA]"):
|
if torch.cuda.get_device_name().endswith("[ZLUDA]"):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user