From ed35cb872b76881bf76251109dd8dd4a87f0573b Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Fri, 31 Mar 2023 16:16:46 +0200 Subject: [PATCH] [v0.25] Leave cuda/intel backend to decide how to report PCI vendor failure --- src/common/pci.cpp | 1 - src/cuda/cuda.cpp | 1 + src/intel/intel.cpp | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/pci.cpp b/src/common/pci.cpp index e2c1d67..90100c8 100644 --- a/src/common/pci.cpp +++ b/src/common/pci.cpp @@ -28,7 +28,6 @@ bool pciutils_is_vendor_id_present(struct pci_dev *devices, int id) { } } - printErr("Unable to find a valid device for vendor id 0x%.4X using pciutils", id); return false; } diff --git a/src/cuda/cuda.cpp b/src/cuda/cuda.cpp index 5a9782d..e6aff86 100644 --- a/src/cuda/cuda.cpp +++ b/src/cuda/cuda.cpp @@ -152,6 +152,7 @@ struct gpu_info* get_gpu_info_cuda(struct pci_dev *devices, int gpu_idx) { strcpy(gpu->name, deviceProp.name); if((gpu->pci = get_pci_from_pciutils(devices, PCI_VENDOR_ID_NVIDIA, gpu_idx)) == NULL) { + printErr("Unable to find a valid device for vendor id 0x%.4X using pciutils", PCI_VENDOR_ID_NVIDIA); return NULL; } gpu->arch = get_uarch_from_cuda(gpu); diff --git a/src/intel/intel.cpp b/src/intel/intel.cpp index bef7ada..e9d4c97 100644 --- a/src/intel/intel.cpp +++ b/src/intel/intel.cpp @@ -26,6 +26,7 @@ struct gpu_info* get_gpu_info_intel(struct pci_dev *devices) { if(gpu->pci == NULL) { // No Intel iGPU found in PCI, which means it is not present + printWarn("Unable to find a valid device for vendor id 0x%.4X using pciutils", PCI_VENDOR_ID_INTEL); return NULL; }