forked from orkblutt/MinerLamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvidianvml.h
53 lines (32 loc) · 857 Bytes
/
nvidianvml.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef NVIDIANVML_H
#define NVIDIANVML_H
#include <nvml.h>
class nvidiaNVML
{
public:
nvidiaNVML();
bool initNVML();
unsigned int getGPUCount();
void shutDownNVML();
int getGPUTemp(unsigned int index);
int getFanSpeed(unsigned int index);
int getMemClock(unsigned int index);
int getGPUClock(unsigned int index);
int getPowerDraw(unsigned int index);
int getMaxSupportedMemClock(unsigned int index);
int getHigherTemp();
int getLowerTemp();
int getHigherFanSpeed();
int getLowerFanSpeed();
int getMemMaxClock();
int getMemLowerClock();
int getGPUMaxClock();
int getGPUMinClock();
int getMaxPowerDraw();
int getMinPowerDraw();
int getPowerDrawSum();
void setClock(unsigned int index);
private:
unsigned int _gpuCount;
};
#endif // NVIDIANVML_H