[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:
@@ -1,13 +1,14 @@
|
||||
#ifndef __PCI__
|
||||
#define __PCI__
|
||||
#ifndef __PCI_CUDA__
|
||||
#define __PCI_CUDA__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "nvmlb.hpp"
|
||||
|
||||
#include "../common/pci.hpp"
|
||||
#include "chips.hpp"
|
||||
|
||||
struct pci;
|
||||
|
||||
struct pci* get_pci_from_nvml(struct nvml_data* data);
|
||||
struct pci* get_pci_from_pciutils(struct pci_dev *devices);
|
||||
GPUCHIP get_chip_from_pci(struct pci* pci);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user