mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-20 19:30:20 +08:00
Update cuda_malloc.py
This commit is contained in:
parent
58594a0b47
commit
d7f28efe8d
@ -56,12 +56,14 @@ def cuda_malloc_supported():
|
|||||||
except:
|
except:
|
||||||
names = set()
|
names = set()
|
||||||
for x in names:
|
for x in names:
|
||||||
if "NVIDIA" in x:
|
if "AMD" in x:
|
||||||
|
return False
|
||||||
|
elif "NVIDIA" in x:
|
||||||
for b in blacklist:
|
for b in blacklist:
|
||||||
if b in x:
|
if b in x:
|
||||||
return False
|
return False
|
||||||
return False
|
return True
|
||||||
#We don't need malloc at all with amd gpu's. So disabling all together.
|
#returned to older version.
|
||||||
|
|
||||||
|
|
||||||
if not args.cuda_malloc:
|
if not args.cuda_malloc:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user