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
|
|
|
|
2021-09-17 23:43:36 +00:00
|
|
|
bool checkNVML(const char* pciBusId, nvmlDevice_t& device, uint32_t& device_id);
|
|
|
|
bool getNVMLInfo(nvmlDevice_t device);
|
2020-07-06 17:31:40 +00:00
|
|
|
|
|
|
|
#endif //MANGOHUD_NVIDIA_INFO_H
|