forked from extern/easydiffusion
Merge pull request #1556 from easydiffusion/beta
Ignore unknown AMD GPUs
This commit is contained in:
commit
7916b8d26a
@ -213,7 +213,8 @@ def get_config():
|
||||
|
||||
def setup_amd_environment():
|
||||
gpus = list(filter(lambda x: ("amdgpu" in x), open("/proc/bus/pci/devices", "r").readlines()))
|
||||
gpus = [ AMD_PCI_IDs[x.split("\t")[1].upper()] for x in gpus ]
|
||||
gpus = [ x.split("\t")[1].upper() for x in gpus ]
|
||||
gpus = [ AMD_PCI_IDs[x] for x in gpus if x in AMD_PCI_IDs ]
|
||||
i=0
|
||||
supported_gpus=[]
|
||||
for gpu in gpus:
|
||||
|
Loading…
Reference in New Issue
Block a user