Implemented NvmlLib.
This commit is contained in:
parent
175a7b06b7
commit
83f437f979
8 changed files with 203 additions and 12 deletions
|
@ -29,10 +29,27 @@
|
|||
#include <cstdint>
|
||||
|
||||
|
||||
#define NVML_SUCCESS 0
|
||||
#define NVML_SUCCESS 0
|
||||
#define NVML_TEMPERATURE_GPU 0
|
||||
#define NVML_CLOCK_SM 1
|
||||
#define NVML_CLOCK_MEM 2
|
||||
|
||||
|
||||
using nvmlReturn_t = uint32_t;
|
||||
using nvmlDevice_t = struct nvmlDevice_st *;
|
||||
|
||||
|
||||
struct nvmlPciInfo_t
|
||||
{
|
||||
char busIdLegacy[16]{};
|
||||
unsigned int domain = 0;
|
||||
unsigned int bus = 0;
|
||||
unsigned int device = 0;
|
||||
unsigned int pciDeviceId = 0;
|
||||
unsigned int pciSubSystemId = 0;
|
||||
|
||||
char busId[32]{};
|
||||
};
|
||||
|
||||
|
||||
#endif /* XMRIG_NVML_LITE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue