Merge pull request #1556 from easydiffusion/beta

Ignore unknown AMD GPUs
This commit is contained in:
cmdr2 2023-09-01 17:05:04 +05:30 committed by GitHub
commit 7916b8d26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: