Fixes when compiling with both NVML and DCGM.

NVML temp code updated (driver version ~555 and up)
This commit is contained in:
2026-09-30 01:18:05 -07:00
parent f6efb12fdb
commit fdf90ef790
6 changed files with 22 additions and 25 deletions
+6
View File
@@ -36,6 +36,12 @@ struct card_info {
void *nvml_device; /* Pointer to nvmlDevice_t for use in NVML calls */
};
struct clock_reason {
unsigned long long mask;
char *short_name;
char *long_name;
};
unsigned short read_pci_id(char *device_path, char *field);
char *read_nvidia_pci_address(char *device_path);
void mmap_bar0(struct card_info *card);