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.
34 lines
718 B
C
34 lines
718 B
C
4 years ago
|
#include <thread>
|
||
|
#include <inttypes.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include "nvidia_info.h"
|
||
|
|
||
|
using namespace std;
|
||
|
extern FILE *amdGpuFile, *amdTempFile, *amdGpuVramTotalFile, *amdGpuVramUsedFile, *amdGpuCoreClockFile, *amdGpuMemoryClockFile;
|
||
|
extern pthread_t cpuThread, gpuThread, cpuInfoThread;
|
||
|
|
||
|
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 *getNvidiaInfo(void*);
|
||
|
void *getNvidiaGpuInfo(void*);
|
||
|
void *getAmdGpuUsage(void*);
|