mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-06 03:22:33 +08:00
Update GPU detection logic in cuda_malloc.py
Refactor GPU check logic to return True for NVIDIA GPUs.
This commit is contained in:
parent
ce2cdd0161
commit
2edfcd6141
@ -56,14 +56,11 @@ def cuda_malloc_supported():
|
|||||||
except:
|
except:
|
||||||
names = set()
|
names = set()
|
||||||
for x in names:
|
for x in names:
|
||||||
if "AMD" in x:
|
if "NVIDIA" 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.
|
|
||||||
|
|
||||||
|
|
||||||
version = ""
|
version = ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user