[v0.11] Handle the case where the GPU is not found in the pci LUT

This commit is contained in:
Dr-Noob
2021-12-18 20:11:02 +01:00
parent bfb9738132
commit a397eb398e
5 changed files with 11 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
#define CHECK_PCI_START if (false) {}
#define CHECK_PCI(pci, id, chip) \
else if (pci->device_id == id) return chip;
#define CHECK_PCI_END else { printBug("TODOO"); return CHIP_UNKNOWN; }
#define CHECK_PCI_END else { printBug("Unkown CUDA device id: 0x%.4X", pci->device_id); return CHIP_UNKNOWN_CUDA; }
/*
* pci ids were retrieved using https://github.com/pciutils/pciids