From a0842b4659d80afd134a35b2b6a1117f86b59f0c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 1 Sep 2023 17:04:38 +0530 Subject: [PATCH] Ignore unknown AMD GPUs --- scripts/check_modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check_modules.py b/scripts/check_modules.py index 054614b2..67077c88 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -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: