[v0.10] Replace nvml by pciutils to get pci ids. Needs work to integrate it properly. NVML is enough in the case of NVIDIA GPUs, but because more GPUs will be added in the future, a solution like pciutils is needed
This commit is contained in:
13
src/common/pci.hpp
Normal file
13
src/common/pci.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef __GPUFETCH_PCI__
|
||||
#define __GPUFETCH_PCI__
|
||||
|
||||
#include <cstdint>
|
||||
extern "C" {
|
||||
#include <pci/pci.h>
|
||||
}
|
||||
|
||||
uint16_t pciutils_get_pci_vendor_id(struct pci_dev *devices);
|
||||
uint16_t pciutils_get_pci_device_id(struct pci_dev *devices);
|
||||
struct pci_dev *get_pci_devices_from_pciutils();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user