2020-07-06 17:31:40 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MANGOHUD_NVIDIA_INFO_H
|
|
|
|
#define MANGOHUD_NVIDIA_INFO_H
|
|
|
|
|
2020-01-29 01:46:26 +00:00
|
|
|
#include <nvml.h>
|
2020-01-30 09:52:24 +00:00
|
|
|
|
2020-02-01 01:28:31 +00:00
|
|
|
extern nvmlReturn_t result;
|
2020-05-22 12:44:34 +00:00
|
|
|
extern unsigned int nvidiaTemp, processSamplesCount, *vgpuInstanceSamplesCount, nvidiaCoreClock, nvidiaMemClock, nvidiaPowerUsage;
|
2020-02-01 01:28:31 +00:00
|
|
|
extern nvmlDevice_t nvidiaDevice;
|
|
|
|
extern struct nvmlUtilization_st nvidiaUtilization;
|
2020-02-04 06:11:13 +00:00
|
|
|
extern struct nvmlMemory_st nvidiaMemory;
|
2020-02-01 01:28:31 +00:00
|
|
|
extern bool nvmlSuccess;
|
2020-01-29 01:46:26 +00:00
|
|
|
|
2020-04-10 21:30:24 +00:00
|
|
|
bool checkNVML(const char* pciBusId);
|
|
|
|
bool getNVMLInfo(void);
|
2020-07-06 17:31:40 +00:00
|
|
|
|
|
|
|
#endif //MANGOHUD_NVIDIA_INFO_H
|