mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-28 11:13:13 +01:00
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