[v0.01] Reading PCI vendor/device values, needed to deduce the GPU chip and thus manufacturing process

This commit is contained in:
Dr-Noob
2021-08-13 11:31:51 +02:00
parent 8bc37d9d71
commit bdc4fd7c45
7 changed files with 134 additions and 3 deletions

View File

@@ -4,6 +4,9 @@
#include <stdint.h>
#include <stdbool.h>
#include "../cuda/nvmlb.hpp"
#include "../cuda/pci.hpp"
enum {
GPU_VENDOR_NVIDIA
};
@@ -42,6 +45,8 @@ struct gpu_info {
struct uarch* arch;
char* name;
int64_t freq;
struct pci* pci;
struct nvml_data* nvmld;
struct topology* topo;
struct memory* mem;
struct cache* cach;