You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
652 B
C++
33 lines
652 B
C++
#include <thread>
|
|
#include <inttypes.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "nvidia_info.h"
|
|
#include "nvctrl.h"
|
|
|
|
using namespace std;
|
|
extern FILE *amdGpuFile, *amdTempFile, *amdGpuVramTotalFile, *amdGpuVramUsedFile, *amdGpuCoreClockFile, *amdGpuMemoryClockFile;
|
|
|
|
struct amdGpu {
|
|
int load;
|
|
int temp;
|
|
float memoryUsed;
|
|
float memoryTotal;
|
|
int MemClock;
|
|
int CoreClock;
|
|
};
|
|
|
|
struct gpuInfo{
|
|
int load;
|
|
int temp;
|
|
float memoryUsed;
|
|
float memoryTotal;
|
|
int MemClock;
|
|
int CoreClock;
|
|
};
|
|
|
|
extern struct amdGpu amdgpu;
|
|
extern struct gpuInfo gpu_info;
|
|
|
|
void getNvidiaGpuInfo(void);
|
|
void getAmdGpuUsage(void); |